We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18250
    • 37 Posts
    Well, that actually did it. But still - that was weird huh rolleyes

    Tnx!
      • 22851
      • 805 Posts
      Yes. Very weird. I don’t know why that affected your differently to anyone else. Glad you got it working anyway. A fix for that will be in the next release.
        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
        I have a fresh install of MODx Evo (rev 5621), ManagerManager 0.3.4, and YAMS 1.1.7 RC1, but my MODx is two directories deep.

        The YAMS config, etc, says my Server URL is: http://localhost/en/ when really it should be http://localhost/~username/multilingual/en/

        Somehow it seems to be missing the "/~username/multilingual/" and I do not seem to be able to Edit/Update to use the correct value?

        Any Thoughts? I am using Friendly URLs w/ Alias Path, FYI.
          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
          Quote from: pixelchutes at Sep 25, 2009, 03:00 PM

          The YAMS config, etc, says my Server URL is: http://localhost/en/ when really it should be http://localhost/~username/multilingual/en/

          Somehow it seems to be missing the "/~username/multilingual/" and I do not seem to be able to Edit/Update to use the correct value?

          Any Thoughts? I am using Friendly URLs w/ Alias Path, FYI.
          Yes. Set Modules > YAMS > Other Params > MODx Subdirectory to ~username/multilingual

          Please let me know if it doesn’t work. 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.
            • 23491 ☆ A M B ☆
            • 1,056 Posts
            Quote from: PMS at Sep 25, 2009, 03:18 PM

            Quote from: pixelchutes at Sep 25, 2009, 03:00 PM

            The YAMS config, etc, says my Server URL is: http://localhost/en/ when really it should be http://localhost/~username/multilingual/en/

            Somehow it seems to be missing the "/~username/multilingual/" and I do not seem to be able to Edit/Update to use the correct value?

            Any Thoughts? I am using Friendly URLs w/ Alias Path, FYI.
            Yes. Set Modules > YAMS > Other Params > MODx Subdirectory to ~username/multilingual

            Please let me know if it doesn’t work. Cheers.

            Wow! How did I miss that?? Thank you!

            I feel like I am just catching up...trying to now figure out why this is happening:

            http://localhost/~username/multilingual/ => http://localhost/~username/multilingual/en/en/index.html (NOTE: /en/en/ )


            Here is part of my .htaccess:

            RewriteEngine On
            RewriteBase /~username/multilingual/
            
            
            # YAMS
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
            
            # For Friendly URLs
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
            
              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
              Quote from: pixelchutes at Sep 25, 2009, 03:23 PM

              I feel like I am just catching up...trying to now figure out why this is happening:

              http://localhost/~username/multilingual/ => http://localhost/~username/multilingual/en/en/index.html (NOTE: /en/en/ )
              Is your index.html document in a subdirectory called en by any chance?
                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
                Yes smiley

                I have 3 documents, just trying to get a basic Language A ("EN") and Language B ("FR") demo going.

                I have 3 resources in my tree:

                - France (fr) container
                - English (en) container
                + Home (index)

                I am getting very close smiley

                I am running "Root name mode only", FYI.

                Update: I am getting 404 errors and URL is redirecting everything into /en/

                e.g. /fr/ => /en/fr/
                e.g. /en/ => /en/en/

                I have yet to see a valid 200 w/ Eng. content for /en/ and Fr. content for /fr/. Since I am on the newest alpha of YAMS, I didn’t think this 404 would be an issue w/ the MODx subdirectory defined in Other Params?
                  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
                  If you haven’t done it already, then you need to go to Modules > YAMS > Language Settings and make sure French and English are both activated, with one of them the default. You can delete all the other languages.

                  Next you need to be aware that with YAMS, instead of managing multiple document trees, one for each language, you manage a single document tree. With YAMS you can specify certain document templates as multilingual. With ManagerManager set up correctly you’ll have one tab per language within each multilingual document in the tree.

                  So, you’ll need to go to Modules > YAMS > Multilingual Templates and make sure all the relevant document templates are specified as multilingual.

                  You can dispose of the English and French subdirectories. With YAMS you manage your site as if you were managing a single language.

                  Once you have got to that stage, you’ll need to add some extra params to Wayfinder and Ditto calls to make them output multilingual content, and you’ll also need to add something like [[YAMS? &get=`list`]] to include a language select list in your document.

                  Let me know how you get on.
                    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
                    @PMS,

                    Good to know. I thought I recalled reading (from previous versions of YAMS), that the sub-directories were needed.

                    That said, I now have only two resources: index.html and 404.html (for my error page)

                    Both are mapped to "Main Template" which has been defined as multilingual. Both English and French are the only active languages (per YAMS config page).

                    When editing the resource, I see ManagerManager correctly hiding the traditional document variables (introtext, description, etc. as directed in the YAMS config), however the TVs are all listed on top of one another and not in their respective language’s tabs (description_en, description_fr), etc.

                    Note:

                    404 seems to be working correctly now.
                    Valid URLs are not 404, but also not 200:

                    /en/ => /en/index.html with the following error:

                    Quote from: "FireFox

                    The page isn’t redirecting properly
                    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

                    /index.html => /en/index.html with the same error
                    /fr/ => /en/index.html with the same error
                    /fr/index.html => /en/index.html with the same error

                    Odd that /fr/ is becoming /en/ ? I am using: RewriteRule ^fr/(.*)$ index.php?q=$1 [L,QSA]

                    Here is my full .htaccess

                    # Friendly URLs
                    RewriteEngine On
                    RewriteBase /~username/multilingual
                    
                    # Fix Apache internal dummy connections from breaking [(site_url)] cache
                    RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
                    RewriteRule .* - [F,L]
                    
                    # Exclude /assets and /manager directories from rewrite rules
                    RewriteRule ^(manager|assets) - [L]
                    
                    # The Friendly URLs part
                    RewriteCond %{REQUEST_FILENAME} !-f
                    RewriteCond %{REQUEST_FILENAME} !-d
                    RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
                    RewriteCond %{REQUEST_FILENAME} !-f
                    RewriteCond %{REQUEST_FILENAME} !-d
                    RewriteRule ^fr/(.*)$ index.php?q=$1 [L,QSA]
                    RewriteCond %{REQUEST_FILENAME} !-f
                    RewriteCond %{REQUEST_FILENAME} !-d
                    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
                    
                    
                      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
                      Quote from: pixelchutes at Sep 25, 2009, 04:23 PM

                      When editing the resource, I see ManagerManager correctly hiding the traditional document variables (introtext, description, etc. as directed in the YAMS config), however the TVs are all listed on top of one another and not in their respective language’s tabs (description_en, description_fr), etc.
                      To configure YAMS to work with ManagerManager you have to create an mm_rules chunk, add
                      require( $modx->config['base_path'] . 'assets/modules/yams/yams.mm_rules.inc.php' );
                      

                      to the bottom of it, and configure your ManagerManager to use it. With older versions of ManagerManager you add
                      $config_chunk = 'mm_rules';
                      

                      to the ManagerManager plugin code, but in the most recent version you specify it on the configuration tab of the ManagerManager plugin.
                        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.