We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23491 ☆ A M B ☆
    • 1,056 Posts
    I’ve actually already done those steps per the README.txt.

    I think it may be related to my running MODx 1.0.1. ManagerManager apparently may not be compatible with this version per MODx rev5740 comments. I am downgrading to MODx 1.0.0 to confirm.

    However, there seems to be some kind of "endless loop" of redirects that is preventing my page from pulling up. FireFox/Safari handle nicely with an error, Internet Explorer just clocks as it forever redirects back and forth...

    I have changed my redirect in YAMS config to permanent (301), am using "Current else Browser" redirection mode, and have applied the patch you mentioned. I have nothing in my System Event logs, just this odd looping redirect...

    This is fresh install, no Wayfinder/Ditto, etc yet. Just want to get a working English and French demo document via YAMS.

    Update
    Downgraded to MODx 1.0.0 but still no luck on getting the YAMS TVs in their respective language Tabs.

    As you can see from the attached images, ManagerManager seems to be working fine, as it is hiding the traditional Document Variables without issue... I have double checked mm_rules ManagerManager plugin config is mapped to mm_rules.

      Mike Reid - www.pixelchutes.com
      MODx Ambassador / Contributor
      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
      ________________________________
      Where every pixel matters.
      • 22851
      • 805 Posts
      Your set-up sounds perfectly reasonable to me, and your .htaccess looks fine too. As for the redirecting - could it be that one or both of your site start or page not found documents are somehow incorrectly specified? I haven’t tested the MODx subdirectory setting in quite a while - so it’s possible I broke it while updating URL stuff but didn’t notice. I’ll test it out on my local install in a second.

      As for ManagerManager, what version of it are you using? I can see that it is tabifying - it’s just moving the TVs to the tabs which is broken. I suspect that this is a hangover from the change of the way tv names are referred to internally. ManagerManager must have changed the way it works in a more recent version. You’re just probably the first to pick it up. It should work fine with 0.3.2.1. In the meantime, I’ll have a look at the documentation for the more recent versions to see what has changed...
        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.
        • 23491 ☆ A M B ☆
        • 1,056 Posts
        Quote from: PMS at Sep 25, 2009, 05:10 PM

        Your set-up sounds perfectly reasonable to me, and your .htaccess looks fine too. As for the redirecting - could it be that one or both of your site start or page not found documents are somehow incorrectly specified? I haven’t tested the MODx subdirectory setting in quite a while - so it’s possible I broke it while updating URL stuff but didn’t notice. I’ll test it out on my local install in a second.

        As for ManagerManager, what version of it are you using? I can see that it is tabifying - it’s just moving the TVs to the tabs which is broken. I suspect that this is a hangover from the change of the way tv names are referred to internally. ManagerManager must have changed the way it works in a more recent version. You’re just probably the first to pick it up. It should work fine with 0.3.2.1. In the meantime, I’ll have a look at the documentation for the more recent versions to see what has changed...

        I am on MgrMgr 0.3.4. Start Page and Error Page should be configured without problems, as I only have those two Resources in my tree smiley Both are using the same multilingual template.

        I’ll try to downgrade to MgrMgr 0.3.2.1. Would love to know what you find out regarding YAMS RC1 & MODx in two level deep sub-directory... Also let me know if there’s anything else I can provide to assist you, e.g. snapshots of my YAMS config, etc.

        I’ll wait to hear if you can confirm a working version with similar setup on your end...

        Update
        Looks like MgrMgr 0.3.2.1 doesn’t support MODx 1.0.0 sad
          Mike Reid - www.pixelchutes.com
          MODx Ambassador / Contributor
          [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
          ________________________________
          Where every pixel matters.
          • 22851
          • 805 Posts
          YAMS 1.1.7 alpha RC 2 is now available for download. Please note that the YAMS module system events have been updated again. YAMS now needs to be active on OnBeforeDocFormSave instead of OnDocFormSave, and also needs to be active on OnLoadWebPageCache if it is not already.

          As well as some bug fixes, there are several new features in this version:

          - ManagerManager 0.3.4 Compatibility
          - Automatic generation of multilingual aliases based on the pagetitle on doc save (if the ’Automatically generate alias’ friendly URL parameter has been set)
          - Checking for duplicate aliases (if the ’Allow duplicate aliases’ friendly URL parameter has been set to ’no’). The checking is done on a language by language basis. This will either generate warnings or update the aliases to make them valid depending on friendly URL settings.
          - Checking for unique aliases (if the YAMS Unique Multilingual Aliases setting has been set). This is similar to checking for duplicate aliases, except that the check occurs across languages. This too will either generate warnings or update the aliases to make them valid depending on friendly URL settings.
          - By default the stripAlias function or OnStripAlias event is now called on multilingual aliases to mimic MODx’s default behaviour for standard aliases. With MODx Evo the transalias plugin is typically active on the OnStripAlias event. Please note however, that, while you might want to use stripAlias for search engine friendliness - it is not an obligation with YAMS. You can include whatever characters you like in the aliases - including multibyte characters - if you wish and YAMS will generate correctly encoded URLs. There is an option under ’Other Params’ to switch off the stripAlias functionality for multilingual aliases if you wish.
          - There is now a mime-dependent suffixes option, that will choose a suffix based on the document content-type, defaulting to the value specified in the friendly URL settings if the content type is not recognised. YAMS currently recognises the following content-types:
                'application/xhtml+xml' => '.xhtml'
                , 'application/javascript' => '.js'
                , 'text/javascript' => '.js'
                , 'application/rss+xml' => '.rss'
                , 'application/xml' => '.xml'
                , 'text/xml' => '.xml'
                , 'text/css' => '.css'
                , 'text/html' => '.html'
                , 'text/plain' => '.txt'
          

          Currently the only way of modifying this mapping is to edit the config.inc.php file, but I’d be happy to make this configurable via the module interface if someone requires it.

          I think that all this multilingual alias functionality is pretty stable now. My plan is to check that this version works for everyone, fixing any bugs as necessary, but not making any more major developments. This will then be released as a beta version and will be added to the MODx repository. It’s about time there was a new official version.
            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.
            • 23491 ☆ A M B ☆
            • 1,056 Posts
            Quote from: PMS at Sep 26, 2009, 10:36 PM

            YAMS 1.1.7 alpha RC 2 is now available for download. Please note that the YAMS module system events have been updated again. YAMS now needs to be active on OnBeforeDocFormSave instead of OnDocFormSave, and also needs to be active on OnLoadWebPageCache if it is not already.

            As well as some bug fixes, there are several new features in this version:

            Paul,

            Thank you for this updated release! I can report back that under MODx 1.0.0 with this update, YAMS is functioning well for me even with the newest ManagerManager (0.3.4)...however, multilingual aliases still don’t seem to work for me.

            Upon this success, I upgraded my test site to MODx 1.0.1 (SVN rev 5740) and it doesn’t seem to be working correctly with ManagerManager any more. To me, this seems like a ManagerManager specific issue under MODx 1.0.1. Rev 5740 "ManagerManager update to 0.3.4, compatible with release of Evo 1.0.0. Further work required to make compatible with SVN version of 1.0.1"

            Thanks again for this interim release, we are definitely making progress!
              Mike Reid - www.pixelchutes.com
              MODx Ambassador / Contributor
              [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
              ________________________________
              Where every pixel matters.
              • 22851
              • 805 Posts
              Thanks for the feedback @pixelchutes. I’d love to get to the bottom of why multilingual aliases aren’t working for you. What do you mean by that exactly, by the way? Are you getting 404 not founds all the time or are the pages ending up in some infinite redirect loop or something like that?

              I think you’re working from a local install at the moment, but is there any chance you could publish your install somewhere so that I could log in and investigate? Failing that, perhaps you could send me your yams.config.inc.php file and .htaccess files and let me know what your MODx friendly URL settings are? That should provide me with sufficient information to reproduce your set-up locally and test.

              Cheers.
                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.
                • 10152
                • 156 Posts
                Great extension,

                little bug : my site is in french by default accesible at this url : http://mysite.fr/
                English version is htp://mysite.fr/en/

                Maybe i say something wrong, but in my case I had to remove this line from the .htaccess :
                RewriteRule ^$ / [R=301,L]


                EDIT : upgrading to this RC makes treasurechest on multilingual page not work anymore.
                DOes anyone have background info about making yams work with treasurechest, I found nothing on Google about that ?
                  • 22851
                  • 805 Posts
                  Quote from: French at Sep 28, 2009, 01:06 PM

                  little bug : my site is in french by default accesible at this url : http://mysite.fr/
                  English version is htp://mysite.fr/en/

                  Maybe i say something wrong, but in my case I had to remove this line from the .htaccess :
                  RewriteRule ^$ / [R=301,L]

                  Yes. Well spotted. It’s a bug. Just ignore that line in the .htaccess code provided by YAMS. I have just corrected this bug in my local version. I’ll release an update shortly.

                  Quote from: French at Sep 28, 2009, 01:06 PM

                  EDIT : upgrading to this RC makes treasurechest on multilingual page not work anymore.
                  DOes anyone have background info about making yams work with treasurechest, I found nothing on Google about that ?
                  Was treasurechest working with a previous version of YAMS?! How has it stopped working now?

                  By the way, I think you’re probably the first person to try it. I’ve just taken a look at the treasurechest documentation. You’ll need to replace placeholders like [+pagetitle+] with
                  [[YAMS? &get=`data` &from=`pagetitle` &docid=`[+id+]`]]
                  

                  so that the correct language content is inserted in the templates. Apart from that I haven’t seen anything too concerning. You’ll probably need to make sure that the URL redirection mode is ’Current else browser’ too.
                    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 RC3 is now available. This fixes the bug in the .htaccess code only. It doesn’t affect how YAMS itself functions.
                      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: French at Sep 28, 2009, 01:06 PM

                      EDIT : upgrading to this RC makes treasurechest on multilingual page not work anymore.
                      DOes anyone have background info about making yams work with treasurechest, I found nothing on Google about that ?
                      @French Fries. Are you using multilingual aliases? I suspect that treasurechest is outputting standard MODx URLs and that YAMS is responding with page not found rather than redirecting to a multilingual alias. It would improve compatibility with standard MODx resources (Ditto included) if YAMS would redirect from normal MODx URLs to multilingual ones. Let me see what I can do about 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.