We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10152
    • 156 Posts
    Sorry for not explaining better. For installing this, just unpack the files in the specified folder , put the snippet call in your template and use the wayfinder params to customize the result.

    I have only a quick overview knowledge with YAMS, but I will try to help people as much as possible wink

      • 23950
      • 78 Posts
      how do you display personalised multilingual TVs ??

      i created some TVs

      banner_trad_title_en
      banner_trad_title_fr
      banner_trad_title_es

      banner_trad_intro_en
      banner_trad_intro_fr
      banner_trad_intro_es

      etc...

      i tried to write [*banner_trad_title_[%LANG%]*] but it doesn’t work :/
        [b]∴ MES SITES SOUS MODx
        • 10152
        • 156 Posts
        i’m not sure but the tv name must begin by "tv".
          • 22851
          • 805 Posts
          Quote from: prouve at Oct 06, 2009, 09:48 AM

          how do you display personalised multilingual TVs ??

          i created some TVs

          banner_trad_title_en
          banner_trad_title_fr
          banner_trad_title_es

          banner_trad_intro_en
          banner_trad_intro_fr
          banner_trad_intro_es

          etc...

          i tried to write [*banner_trad_title_[%LANG%]*] but it doesn’t work :/
          The [%LANG%] syntax is only available if Easylingual Compatibility mode is switched on on the ’Other Params’ tab and it gives the primary language tag (which could be en-gb or fr-fr, for example, depending on how you have set it up) rather than the language group id. The standard YAMS way of getting the language group id is (yams_id).

          Older versions of YAMS didn’t allow yams placeholders to be used in the names of chunks and template variables... but the more recent versions are cleverer. So the following *should* work:
          [*banner_trad_title_(yams_id)*]
          and
          [*banner_trad_intro_(yams_id)*]


          The standard way I tell people to do it is as follows:
          [[YAMS? &get=`tv` &from=`banner_trad_title`]]


          That works across all versions. A tv prefix shouldn’t be required, but nice try French Fries.
            YAMS: Yet Another Multilingual Solution for MODx
            YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
            Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
            • 22851
            • 805 Posts
            YAMS 1.1.7 alpha RC7 is now available for download.

            This includes the following updates:
            - Included @French Fries’ Wayfinder breadcrumbs templates and updated the How To? documentation.
            - Included an option to turn off automatic redirection to the correct multilingual URL when standard MODx style URLs are encountered for specified document ids.
            - Bug fix: MODx default behaviour is that when a document not assigned any alias it is instead referred to by its id. This wasn’t implemented. Done now, except that for multilingual documents with unique aliases on, the documents are referred to by langId-docId. (Thanks to Jonimant for reporting that problem.)
            - Removed a system event log command that was added for debugging purposes but accidentally left in the code.
              YAMS: Yet Another Multilingual Solution for MODx
              YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
              Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
              • 24189
              • 19 Posts
              Hi PMS, everyone

              Just a thought about url-alias.

              I usually avoid case sensitive aliases (Home.html -> home.html).
              But using the modx-auto-alias-option with YAMS, the alias IS case-sensitive.

              Testwise I changed the line 333 (in yams.plugin.inc.php) from
              strip_tags( $langPagetitle )

              to
              strip_tags( strtolower( $langPagetitle ) )


              This works, but of course it would be much nicer to have an option in the YAMS-config, how the alias auto generate function should work (e.f. change chase for auto alias: no || lowercase || uppercase).

              ... just a thought.

              Regards, QT
                • 23950
                • 78 Posts
                yep, i’m completely agree qtx, multilingual aliases must be in lower case smiley
                  [b]∴ MES SITES SOUS MODx
                  • 23950
                  • 78 Posts
                  Quote from: PMS at Oct 06, 2009, 10:33 AM

                  Quote from: prouve at Oct 06, 2009, 09:48 AM

                  how do you display personalised multilingual TVs ??

                  i created some TVs

                  banner_trad_title_en
                  banner_trad_title_fr
                  banner_trad_title_es

                  banner_trad_intro_en
                  banner_trad_intro_fr
                  banner_trad_intro_es

                  etc...

                  i tried to write [*banner_trad_title_[%LANG%]*] but it doesn’t work :/
                  The [%LANG%] syntax is only available if Easylingual Compatibility mode is switched on on the ’Other Params’ tab and it gives the primary language tag (which could be en-gb or fr-fr, for example, depending on how you have set it up) rather than the language group id. The standard YAMS way of getting the language group id is (yams_id).

                  Older versions of YAMS didn’t allow yams placeholders to be used in the names of chunks and template variables... but the more recent versions are cleverer. So the following *should* work:
                  [*banner_trad_title_(yams_id)*]
                  and
                  [*banner_trad_intro_(yams_id)*]


                  The standard way I tell people to do it is as follows:
                  [[YAMS? &get=`tv` &from=`banner_trad_title`]]


                  That works across all versions. A tv prefix shouldn’t be required, but nice try French Fries.

                  many thanks PMS ! <3
                    [b]∴ MES SITES SOUS MODx
                    • 22851
                    • 805 Posts
                    About the case of aliases: YAMS is currently case sensitive when it comes to URLs. What you are trying to achieve here is not about making YAMS case insensitive (which would mean that home.html and Home.html would be treated as the same document, or which would redirect one to the other).

                    I think you are simply trying to make sure that the aliases of all your documents only contain lower case characters (so that, for example, you can use server settings to redirect all URLs to lower case versions). From version 1.1.7 alpha RC2 YAMS calls the OnStripAlias event for multilingual aliases. Therefore, you should be able to write a plugin called, say, LowerCaseURLs that’s active on the OnStripAlias event, which has something like the following code:
                    $e = &$modx->event;
                    switch ( $e->name )
                    {
                      case 'OnStripAlias':
                        return strtolower($alias);
                        break;
                      default:
                        return;
                    }
                    

                    and YAMS should execute it every time you save your documents - even on multilingual aliases. Let me know if you have or don’t have success with this.

                    EDIT: Note. Make sure you set ’Modules > YAMS > Other Params > URL Formatting > Use MODx StripAlias’ to yes for this.
                      YAMS: Yet Another Multilingual Solution for MODx
                      YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
                      Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
                      • 23950
                      • 78 Posts
                      Hello !!

                      i have some bugs in the Manager... i created severals TVs like this:

                      TradBigTitle_fr
                      TradBigTitle_en
                      TradBigTitle_es
                      TradTitle_fr
                      TradTitle_en
                      TradTitle_es
                      TradText_fr
                      TradText_en
                      TradText_es
                      LinkMore_fr
                      LinkMore_en
                      LinkMore_es

                      etc...


                      most of my TVs are displayed the 3 multilingual tabs simultaneously (English, Français, Español). Only the LinkMore TV is well displayed (exepted the LinkMore_en which is displyed in the Spanish Tab)...

                      Can i resolve this bug ? maybe i have to refreshing something ?

                      Thanks
                        [b]∴ MES SITES SOUS MODx