We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22851
    • 805 Posts
    Yes. That is normal for the time being I’m afraid. I started and almost completed modifying the YAMS plugin so that it would auto-generate aliases when new documents are created last week - but then I got distracted by performance enhancements (which are now very near completion). If auto-generation of aliases isn’t in the next release, it certainly will be in the release after that.
      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.
      • 32396
      • 56 Posts
      Quote from: PMS at Sep 01, 2009, 06:23 AM

      @Wild Striker

      I haven’t customised the BreadCrumbs snippet to work with multilingual URLs yet. If I remember correctly, it’s quite a small snippet, so it should be fairly easy to do. I’ll try to post a YAMSified version in the next couple of days. I’m sure there’s a way to do breadcrumbs with Wayfinder, so an alternative approach would be to use that with YAMS templates instead.

      Thanks a lot! I’ll be waiting for YAMS-version of BreadCrumbs.

      And what’s can be the problem with my issue "with TVs in language tabs" (my post #245, see the screen).
      I’m using your patch for sorting TVs. All default TVs have sorting number: (0) and my custom TVs author_quote_en/ru (10), keywords_en/ru (20) and eventdate_en/ru (30).
      When I disable eventdate_en/ru everything is back to normal. What could be the reason?

      And Thanks again for your support!
        Using: MODx Evo 1.0.6 / Revo 2.2.5
        • 22851
        • 805 Posts
        Quote from: Wild at Sep 01, 2009, 07:51 AM

        And what’s can be the problem with my issue "with TVs in language tabs" (my post #245, see the screen).
        I’m using your patch for sorting TVs. All default TVs have sorting number: (0) and my custom TVs author_quote_en/ru (10), keywords_en/ru (20) and eventdate_en/ru (30).
        When I disable eventdate_en/ru everything is back to normal. What could be the reason?

        Perhaps array_merge is not working quite as I expected with regards to ordering of array elements. Please can you try replacing line 113 of yams.mm_rules.inc.php
            $tvString = implode( ',', array_merge( $standardTVs, $customTVs ) );
        

        with
            $tvString = implode( ',', $standardTVs );
            if ( count( $customTVs ) > 0 )
            {
              $tvString .= ',' . implode( ',', $customTVs );
            }
        

        to see if that fixes the problem?

        Thanks.
          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
          Quote from: Wild at Sep 01, 2009, 07:51 AM

          Thanks a lot! I’ll be waiting for YAMS-version of BreadCrumbs.

          Untested: Try editing the breadcrumbs snippet and changing the following line (it’s the only one with makeUrl in it)
                  $pretemplateCrumb .= '<a class="'.$crumbClass.'" href="'.$modx->makeUrl($c['id']).'" title="'.$title.'">'.$text.'</a>';
          

          to be
                  $pretemplateCrumb .= '<a class="'.$crumbClass.'" href="(yams_docr:'.$c['id'].')" title="'.$title.'">'.$text.'</a>';
          


          Then, rather than outputting a standard non-multilingual URL, breadcrumbs will output a YAMS placeholder that should include the correct multilingual URL. All you have to do is include the [[Breadcrumbs]] snippet call in your document template like normal. If you are not using weblinks, then you can use (yams_doc: insteady of (yams_docr: for efficiency.
            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.
            • 32396
            • 56 Posts
            Quote from: PMS at Sep 01, 2009, 08:27 AM

            Quote from: Wild at Sep 01, 2009, 07:51 AM

            And what’s can be the problem with my issue "with TVs in language tabs" (my post #245, see the screen).
            I’m using your patch for sorting TVs. All default TVs have sorting number: (0) and my custom TVs author_quote_en/ru (10), keywords_en/ru (20) and eventdate_en/ru (30).
            When I disable eventdate_en/ru everything is back to normal. What could be the reason?

            Perhaps array_merge is not working quite as I expected with regards to ordering of array elements. Please can you try replacing line 113 of yams.mm_rules.inc.php
                $tvString = implode( ',', array_merge( $standardTVs, $customTVs ) );
            

            with
                $tvString = implode( ',', $standardTVs );
                if ( count( $customTVs ) > 0 )
                {
                  $tvString .= ',' . implode( ',', $customTVs );
                }
            

            to see if that fixes the problem?

            Thanks.
            changed and didn’t helped.

            About BreadCrumbs in previous post. I changed like you said and it helped with URLs but how to change LinkText to be multilingual?
              Using: MODx Evo 1.0.6 / Revo 2.2.5
              • 30693
              • 5 Posts
              Thanks for YAMS, it is working great on a site I launched for a client yesterday: http://www.athene-prosjekt.no/

              I only have one problem. The site is in two languages, Norwegian and English, with Norwegian as the default one. "Redirection Mode" is set to "Current". First time visitors get redirected to the english version, but should get the default Norwegian version. How can I fix this?

              Truls, Norway
                • 22851
                • 805 Posts
                @Wild Striker

                Yes. Of course you’re right. The text needs to be multilingual as well. If all pages are multilingual, then updating the Breadcrumbs snippet should be fairly straightforward. If some documents in the breadcrumb trail are and some aren’t then it gets a little more tricky, but I’m sure it’s still doable. I’m a bit overloaded at the moment though. I might not be able to look at this until the weekend now I’m afraid.

                @trulss

                Nice site. I see the problem. Which version of YAMS are you using?

                I found a problem by the way. If you search for, say, ’project’, then the results get inserted into document in the wrong place at the top of the page.

                EDIT: I haven’t tried this before, but if you haven’t done so already then you might want to configure your different language AjaxSearch snippet calls to only search in the multilingual tvs corresponding to that language. Something like:
                ... &withTvs=`+pagetitle_en,longtitle_en,introtext_en,description_en,content_en,alias_en,menutitle_en`...
                

                on the English variant, and similarly for your other language variants.
                  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.
                  • 25483
                  • 741 Posts
                  I have all things working perfectly now, but I only have one problem left.
                  I don’t get the domains like I want them, this is what happens:


                  • domain.com -> www.domain.com
                  • www.domain.com -> www.domain.com
                  • domain.nl -> www.domain.com
                  • www.domain.nl -> www.domain.nl

                  So "domain.nl" without "www" goes to the default language and redirects to "www.domain.com". How can I arrange to redirect it to www.domain.nl so that it gives the dutch language pages?
                    with regards,

                    Ronald Lokers
                    'Front-end developer' @ h2o Media

                    • 22851
                    • 805 Posts
                    @MediaGuy

                    So you have www.domain.com set up as your default language and www.domain.nl as a second language and presumably there is a mono URL too. Any request accepted by your server that doesn’t match either of those will get redirected to either default language or the current language etc. depending on your redirection settings. In this case domain.nl is not recognised and is being redirected to your default language www.domain.com.

                    I think you should be able to get what you want by using your .htaccess to rewrite domain.nl as www.domain.nl before any friendly URL stuff.
                      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.
                      • 25483
                      • 741 Posts
                      Quote from: PMS at Sep 03, 2009, 03:30 AM

                      @MediaGuy

                      So you have www.domain.com set up as your default language and www.domain.nl as a second language and presumably there is a mono URL too. Any request accepted by your server that doesn’t match either of those will get redirected to either default language or the current language etc. depending on your redirection settings. In this case domain.nl is not recognised and is being redirected to your default language www.domain.com.

                      I think you should be able to get what you want by using your .htaccess to rewrite domain.nl as www.domain.nl before any friendly URL stuff.


                      I already tried that, but it didn’t work! I just did check it again and saw I made a typo. It’s working great now smiley
                        with regards,

                        Ronald Lokers
                        'Front-end developer' @ h2o Media