We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Was doing OK until update to 1.1.8, now second page has this in its menu. huh

    http://www.sottwell.com/petshop/en/two.html
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 22851
      • 805 Posts
      PaulSuckling Reply #2, 14 years ago
      Oh... Maybe I broke it then..? sad Sorry about that. Let me check and I’ll get back to you as soon as I can.

      EDIT: Can confirm that I broke it... I’ll have a fix soon...
        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
        PaulSuckling Reply #3, 14 years ago
        Turns out I fixed one bug and introduced another. I shouldn’t have been so hasty in submitting it to the MODx repository. I’ll submit a new version soon. In the meantime, please replace line 7106 of assets/modules/yams/class/yams.class.inc.php ...
                    $find[] = '/' . preg_quote( $match, '/') . '/'
                      . $this->itsEncodingModifier;

        with
                    $find[] = $match;

        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
          PaulSuckling Reply #4, 14 years ago
          And then there was YAMS 1.1.9...
            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.
          • I presume that the patch is the only difference between 1.1.8 and 1.1.9?

            In any case, with the patch it’s working great. If anybody is interested in following the process, it’s http://www.sottwell.com/petshop

            Next up is Easy 2 Gallery, with an extension to have a "vote" button along with (or instead of) the commenting feature.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 22851
              • 805 Posts
              PaulSuckling Reply #6, 14 years ago
              Quote from: sottwell at May 21, 2010, 11:55 PM

              I presume that the patch is the only difference between 1.1.8 and 1.1.9?
              Actually, no. When I was updating the list of known bugs after updating version 1.1.8 I realised that there was a bug that kongo09 had found and supplied a patch for, but which I had forgotten to apply. So, I applied that patch in this release too. The bug meant that existing content in standard document variables was not being copied over to the default language multilingual template variables when switching a template from monolingual to multilingual. So, this only really affects people who are converting already populated non-YAMS sites and it just means that they have to cut-paste their content over manually.

              By the way, what is the site that you are developing? Is it a real site, or are you just playing with YAMS and some snippets to test it? I can only see one language at the moment. Assuming that you’ve actually got more than one language behind the scenes, it would be great if you could expose them by incorporating a language switcher into your site! Try, for example
              [[YAMS? &get=`list`]]
                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
                PaulSuckling Reply #7, 14 years ago
                Sottwell. If you’re looking for a quick and easy way to upgrade your YAMS, then I do it like this:

                • [tt]cd modx-site-root/assets/modules[/tt]
                • [tt]svn export --force svn://nashi.podzone.org/yams/trunk ./[/tt]
                • [tt]chown -R yourchosenuser:webgroup *[/tt]
                You might need to sudo those commands. This will get you the bleeding edge revision, which is currently YAMS 1.1.9. You can always search the svn log in order to find a revision that corresponds to a release. You can identify versions I release because the log message starts with the version number.
                  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.
                • It will be a real site; right now it’s only in english because the people who will be using it aren’t ready yet, and I don’t write the other languages (I barely speak enough Hebrew to get by, and it’s been 45 years since I studied French in high school). So I’m taking the opportunity of actually having a couple of months lead time to learn YAMS and to decide which gallery I want to use.

                  I’ll use the multilanguage Lorem Ipsum generator to put in some noise so we can see what’s going on.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 22851
                    • 805 Posts
                    PaulSuckling Reply #9, 14 years ago
                    Great! Good idea to give yourself plenty time to test. It’s important to test with multiple languages, because it’s normal to find hard-coded text in snippets that you need to track down and translate and you also need to make sure that the URLs output by the snippets work correctly in all languages. Your best bet is a gallery that uses templating, so that you can have one template per language. I’ll do my best to help if you get stuck.

                    I haven’t got much experience of integration of YAMS with galleries, but I do know that Maxigallery has been used successfully with YAMS in the past. If you have time, it would be great if you could let us know how you get on so that I can beef up the How To section of the YAMS documentation.

                    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.
                    • It looks like I’ll be using Easy2Gallery; it should be easy to either adapt the commenting feature to simple voting or use it as a base from which to build a voting feature. The people who will be running the site are familiar with MODx and are quite comfortable working in the Manager.

                      I will most likely be writing up a series of articles on this site’s development, as it will have a number of interesting features.

                      Maybe while it’s still under development, I’ll put up a bunch of those sweater pattern photos with voting to see which one I should make for my partner this winter. I already have the Shetland wool for it.

                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org