We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22851
    • 805 Posts
    Quote from: prouve at Oct 07, 2009, 04:52 AM

    ...
    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 ?
    What version of ManagerManager do you have installed and what type of template variables are they? 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.
      • 23950
      • 78 Posts
      ManagerManager 0.3.2, the 4 system events are checked (OnFormRender, OnFormPrerender, OnPluginFormRender, OnTVFormRender), i created the chuck mm_rules too. All my TVs are type Text or Textarea...

      i’m gonna upgrade to the latest version (1.1.7 RC6 as i remember)

      EDIT: And MM 0.3.4 too ^^
        [b]∴ MES SITES SOUS MODx
        • 22851
        • 805 Posts
        Quote from: prouve at Oct 08, 2009, 03:03 AM

        i’m gonna upgrade to the latest version (1.1.7 RC6 as i remember)
        We’re up to YAMS 1.1.7 alpha RC7 already.
          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
          YEAH !! Everytrhing is working with the 1.1.7 RC7 !!

          i’m sure u love to read that PMS wink
            [b]∴ MES SITES SOUS MODx
            • 22851
            • 805 Posts
            Quote from: prouve at Oct 08, 2009, 06:10 AM

            YEAH !! Everytrhing is working with the 1.1.7 RC7 !!

            i’m sure u love to read that PMS wink
            Yes. That’s good news, although it was probably more to do with your ManagerManager update than it was your YAMS update. As far as I’m concerned that is the green light for me to release a new YAMS beta version, since all reported bugs have been fixed. The documentation needs a revamp first though, so I’m not sure if I’ll get the beta released before I leave for hols etc.

            Once I get back at the end of October my priorities will be:
            - language disabling on a document by document basis
            - PHx support
            - Module revamp and multilingual documentation
            - Some behind the scenes re-organisation and tidying up the the YAMS class.
              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.
              • 33241
              • 9 Posts
              Dear PMS and everybody!

              I’d like to ask you to help me to resolve a problem. I’ve installed ModX Evolution 1.0, YAMS 1.1.7 RC7, made the module, snippet, chunk, managermanager set ups. I have a very simple template, and 2 pre-created very simple sites.

              Already made this simple template to a multi lingual one, and got this response, seems fine, and works fine, can fill all the contents on a resource creation session.

              Associated template variable "pagetitle_en" with template number 4 .
              Associated template variable "pagetitle_hu" with template number 4 .
              Associated template variable "longtitle_en" with template number 4 .
              Associated template variable "longtitle_hu" with template number 4 .
              Associated template variable "description_en" with template number 4 .
              Associated template variable "description_hu" with template number 4 .
              Associated template variable "introtext_en" with template number 4 .
              Associated template variable "introtext_hu" with template number 4 .
              Associated template variable "menutitle_en" with template number 4 .
              Associated template variable "menutitle_hu" with template number 4 .
              Associated template variable "content_en" with template number 4 .
              Associated template variable "content_hu" with template number 4 .

              All right. But when i’m trying to publish and prewiev the site, i get an Object not found response, and i can’t do anything to resolve the problem. If i switch off the multi lingual option on my template, i can reach the site.

              I’m a very newbie in this, so i would like to ask some questions:
              - Do i have to make folders, files anywhere? (i think no, but i might be wrong)
              - Do i have to build a container/resource tree to be able to enjoy the advantages of a multi lingual solution?
              - What am i doing wrong? :’(

              My goal is to make a site similar to this: http://www.galerie-interart.com/en/home.html

              This is my template:

              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
              "http://www.w3.org/TR/REC-html40/strict.dtd">
              <html>
              <head>
              <title>[*pagetitle*]</title>
              <style type="text/css">
              ...
              </style>
              </head>
              <body>

              <div id="content">
              <h1>[*longtitle*]</h1>

              [*content*]

              <h4>Jump to</h4>

              {{test_menu}}

              {{test_footer}}

              </div>
              </body>
              </html>

              I know it is very very simple and not ready for multi lingual use. Is it the problem?

              This is my htaccess file:

              # For full documentation and other suggested options, please see
              # http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
              # including for unexpected logouts in multi-server/cloud environments

              Options +FollowSymlinks
              RewriteEngine On
              RewriteBase /

              # Fix Apache internal dummy connections from breaking [(site_url)] cache
              RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
              RewriteRule .* - [F,L]

              # Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
              #RewriteCond %{HTTP_HOST} .
              #RewriteCond %{HTTP_HOST} !^example\.com [NC]
              #RewriteRule (.*) http://example.com/$1 [R=301,L]

              # Exclude /assets and /manager directories from rewrite rules
              RewriteRule ^(manager|assets) - [L]

              # For Friendly URLs
              # RewriteCond %{REQUEST_FILENAME} !-f
              # RewriteCond %{REQUEST_FILENAME} !-d
              # RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

              # For Friendly URLs
              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
              RewriteRule ^(.*)$ index.php?q=$1&yams_lang=en [L,QSA]
              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
              RewriteRule ^en/(.*)$ index.php?q=$1&yams_lang=en [L,QSA]
              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
              RewriteRule ^hu/(.*)$ index.php?q=$1&yams_lang=hu [L,QSA]
              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
              RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

              # Reduce server overhead by enabling output compression if supported.
              #php_flag zlib.output_compression On
              #php_value zlib.output_compression_level 5

              There is a picture about my settings: http://ysera.wplanet.hu/yams_problem.png
              And an another about that annoying response: http://ysera.wplanet.hu/yams_problem_2.png

              Thank you in advance!
              Sincerely
              Ysera

              P.S.: Can i find a good tutorial somewhere for absolute newbies (ModX+YAMS) to get started?
                • 22851
                • 805 Posts
                Quote from: ysera at Oct 08, 2009, 07:20 AM

                Already made this simple template to a multi lingual one, and got this response, seems fine, and works fine, can fill all the contents on a resource creation session.

                Associated template variable "pagetitle_en" with template number 4 .
                Associated template variable "pagetitle_hu" with template number 4 .
                ...
                Yes. Doing fine so far.

                Quote from: ysera at Oct 08, 2009, 07:20 AM

                - Do i have to make folders, files anywhere? (i think no, but i might be wrong)
                - Do i have to build a container/resource tree to be able to enjoy the advantages of a multi lingual solution?
                No. A standard MODx site structure is fine.

                Quote from: ysera at Oct 08, 2009, 07:20 AM

                - What am i doing wrong? :’(
                Don’t know yet...

                Quote from: ysera at Oct 08, 2009, 07:20 AM

                This is my template:

                <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
                "http://www.w3.org/TR/REC-html40/strict.dtd">
                ...

                I know it is very very simple and not ready for multi lingual use. Is it the problem?
                No. That template should be fine to start off with. It’s a good idea to start simply like you have done.

                Quote from: ysera at Oct 08, 2009, 07:20 AM

                This is my htaccess file:
                ...
                # For Friendly URLs
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteRule ^(.*)$ index.php?q=$1&yams_lang=en [L,QSA]
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteRule ^en/(.*)$ index.php?q=$1&yams_lang=en [L,QSA]
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteRule ^hu/(.*)$ index.php?q=$1&yams_lang=hu [L,QSA]
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
                ...
                Hmm. The part that I have highlighted doesn’t look right. Has that been taken from the Server Config tab of the YAMS module? I think it should be:
                Quote from: ysera at Oct 08, 2009, 07:20 AM

                # For Friendly URLs
                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 ^hu/(.*)$ index.php?q=$1 [L,QSA]
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

                Please update your .htaccess and then try accessing http://192.168.0.8/index.php?id=1 again.

                Quote from: ysera at Oct 08, 2009, 07:20 AM

                P.S.: Can i find a good tutorial somewhere for absolute newbies (ModX+YAMS) to get started?
                I’m afraid such a thing doesn’t exist yet. The closest thing is the set-up guide and How To? documentation in the YAMS module - but I realise it’s not very friendly to new users of MODx. If you have questions that you can’t solve using the documentation then currently the best solution is to ask them here.
                  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.
                  • 33241
                  • 9 Posts
                  Quote from: PMS at Oct 08, 2009, 08:09 AM

                  Please update your .htaccess and then try accessing http://192.168.0.8/index.php?id=1 again.

                  Done, but unfortunately nothing has changed. embarrassed
                  As i was reading the forum, found that modified htaccess part of friendly URL-s, but gonna use this one from now. I will try to set up this entirely solution besides of my localhost, maybe with more luck smiley

                  Thank you for the quick answers, made me get closer to my goal! smiley
                    • 17883
                    • 1,039 Posts
                    Hi PMS,

                    I upgraded to the last version (1.1.7RC7) but unfortunately the automatic internal ressource name creation is gone, it always creates "unknown ressource". MM 0.34 with your mm-configuration-rules. 1.1.6alpha was fine with my own mm_rules since your rules didn`t work in mm 0.34. The rest seems to work, the lang tab creation and the order of the TVs.
                      • 22851
                      • 805 Posts
                      Quote from: MadeMyDay at Oct 08, 2009, 08:40 AM

                      I upgraded to the last version (1.1.7RC7) but unfortunately the automatic internal ressource name creation is gone, it always creates "unknown ressource". MM 0.34 with your mm-configuration-rules. 1.1.6alpha was fine with my own mm_rules since your rules didn`t work in mm 0.34. The rest seems to work, the lang tab creation and the order of the TVs.
                      Hi @MadeMyDay.

                      Please can you clarify exactly what under what circumstances you expect which field to get copied where? Is this to do with the standard/document pagetitle being auto-updated with the default language pagetitle when a document is saved?

                      Thanks.

                      EDIT: If so, have you got

                      Modules > YAMS > Other Params > Document Layout Settings > Autoupdate Manager Document Title

                      set to Yes? Perhaps you switched it off if you were using your own rules.
                        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.