We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30497
    • 245 Posts
    Further on my caching issue:

    I managed to catch two screenshots, which possibly indicate something:





    This is the parsed HTML and the associated source.

    Notice how the page starts (incorrectly) with "Jamie Spivak, USA (/yams-select:56).

    Why? what is yams-select:56, and it seems to be something closing with an opening?
      • 30497
      • 245 Posts
      Quote from: PMS at Aug 30, 2009, 05:24 PM

      Quote from: towerofbabel at Aug 30, 2009, 08:17 AM

      Are there any instructions for getting xml sitemaps to work with YAMS?

      Yes. Some step by step sitemap instructions are available.

      EDIT: The instructions above are for creating a single sitemap. To create one for each language, use the same approach but don’t use the repeat syntax. Instead make your sitemap.xml template multilingual and place one ditto call in each content field.

      I followed the steps, and left out point 7. Instead, I place the ditto call on the content area of my sitemap.xml:
      [!Ditto? &language=`(yams_mname)` &parents=`0` &tpl=`UrlsetUrl` &depth=`5` &dateSource=`editedon` &dateFormat=`%Y-%m-%d` &display=`all` &showInMenuOnly=`0` &seeThroughUnpub=`1` &filter=`type,reference,2|searchable,1,1`!]


      http://www.quitsmokingin10days.com/sitemap.xml

      You’ll see that the browser says "the server is redirecting the request for this address in a way that will never complete."

      Any thoughts?


      EDIT: user error: I didn’t create a multilingual version of my xml template.
        • 30497
        • 245 Posts
        OK, this is also weird (caching too?):

        I have my XML sitemaps running - first time they load. second time any of them is called, it throws a parsing error.

        I can "fix" this by clearing cache in MODx. Then, the sitemap.xml loads error free first time, but gives a parsing error second time.

        Try any of these. Please, no-one reading this page click these links except for PMS - I want him to be able to see that first time the sitemap loads correctly, and only subsequent loads give a parsing error.
        http://ww.quitsmokingin10days.com/sitemap.xml
        http://ru.quitsmokingin10days.com/sitemap.xml
        http://es.quitsmokingin10days.com/sitemap.xml

        The parse error received on all subsequent page loads is:
        XML Parsing Error: not well-formed
        Location: http://es.quitsmokingin10days.com/sitemap.xml
        Line Number 1, Column 6:http://es.quitsmokingin10days.com/26/31(/yams-select:6)</loc>
        -----^
          • 32396
          • 56 Posts
          Hi,
          I have some problem with custom TVs and language tabs (see attached screen)

          I’ve created several TVs: Keywords_en/ru, quotes_en/ru and eventdate_en/ru. Keywords and quotes displays correct. The problem is that both TVs eventdate_ru and eventdate_en displays in Russian Tab and pagetitle_ru moved to standart TV.



            Using: MODx Evo 1.0.6 / Revo 2.2.5
            • 22851
            • 805 Posts
            @towerofbabel

            I see the problems you are having. The things I need to look at are the cached source for the broken documents and the what’s in your document template just before the broken yams-select construct. Are you using any phx? The sitemap errors are puzzling. I wonder what was special about the URL that broke the sitemap. Is this a weblink rather than a normal document or something like that? At this stage it might be easiest if I could log in and investigate myself. If you’re willing to let me do that, then please send me a personal message with the account details.

            @Wild Striker.

            Have you already tried the patch that I posted recently?
              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.
              • 30497
              • 245 Posts
              Quote from: PMS at Aug 31, 2009, 07:20 AM

              @towerofbabel

              I see the problems you are having. The things I need to look at are the cached source for the broken documents and the what’s in your document template just before the broken yams-select construct. Are you using any phx? The sitemap errors are puzzling. I wonder what was special about the URL that broke the sitemap. Is this a weblink rather than a normal document or something like that? At this stage it might be easiest if I could log in and investigate myself. If you’re willing to let me do that, then please send me a personal message with the account details.

              Hi PMS - yes, I use phx, not too much on this site, but in general, I use it a lot.

              The sitemap - I changed the call a bit, and that changed the document that seems to throw the error within the xml file. That makes me think, it is not actually document specific.

              I’ll contact you with a login. thanks.
                • 32396
                • 56 Posts
                Quote from: PMS at Aug 31, 2009, 07:20 AM

                @Wild Striker.

                Have you already tried the patch that I posted recently?

                Yes and it didn’t helped...

                And there is another problem sad with Ditto 2.1 pagination placeholders. [SOLVED]

                P.S. How can I use snippet [[Breadcrumbs]] in different languages?
                [[YAMS? &get=`csnippet` &from=`Breadcrumbs`]]

                - not working


                Thanks
                  Using: MODx Evo 1.0.6 / Revo 2.2.5
                  • 23950
                  • 78 Posts
                  Hello smiley

                  I’m setting up YAMS on my website (under construction). Everything works perfectly, my URLs looks like this:
                  http://www.domain.com/fr/accueil
                  http://www.domain.com/en/accueil

                  when i switch from fr to en thats works smiley

                  BUT, How do i set the multilanguage aliases up ?? my aliases are generated in french ^^

                  Edit: I’m dumb, i didn’t see there were an option to do this ^^
                  but, multilanguage aliases aren’t generated automaticaly ?
                    [b]∴ MES SITES SOUS MODx
                    • 22851
                    • 805 Posts
                    @everyone.

                    Just to let you know that @towerofbabel’s caching/broken document problem was caused by an incorrect plug-in execution order. YAMS must come first (before PHx) in the event order for each event.

                    @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.

                    @prouve

                    When you first switch on multilingual aliases all newly created multilingual aliases should automatically be assigned default values. The format used depends on whether unique aliases has been selected or not. If not unique, then the multilingual aliases will be given the same value as the document alias. If unique, then the multilingual aliases will be given a name using the format langId-documentAlias.
                      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
                      Quote from: PMS at Sep 01, 2009, 06:23 AM


                      @prouve

                      When you first switch on multilingual aliases all newly created multilingual aliases should automatically be assigned default values. The format used depends on whether unique aliases has been selected or not. If not unique, then the multilingual aliases will be given the same value as the document alias. If unique, then the multilingual aliases will be given a name using the format langId-documentAlias.

                      Thanks for ur support smiley YAMS is really a great module!

                      I’m just testing at the moment, i create a new document called "this is a test !".
                      The multilingual aliases are not generated, i have to fill them manually for each language... is it normal ?
                        [b]∴ MES SITES SOUS MODx