On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hi guys,

    I’ve just come across the same problem.

    In the past, I used MODx 1.0.2 with a slightly customized version of YAMS (but that’s a different story). Wayfinder was properly resolving a monolingual weblink no matter what language the page was in that contained the Wayfinder call.

    Now I’m in the process to migrate to MODx 1.0.4 and also to the latest YAMS (again with my small customizations). Now, I observe the behaviour described above. The link is not resolved anymore by Wayfinder. More specifically, the generated HTML shows the link, but lacks the text inside the <a> tag so the menu entry appears empty. Only if I change the template to a multilingual template, the Wayfinder call works as expected.

    Now I’m investigating if this is a bug in Wayfinder, in YAMS, in the YAMS-Wayfinder templates (I’m using the docr version) or in my personal YAMS customization. Point is: you’re not alone and I’ll try to solve this.
    • For the sake of completeness: This post here seems to refer to the same problem
      • Hm, somehow I have the feeling I solved this some time ago, if I only could remember how...
        • Ok, I found the reason why this (seems to) work in my old MODx setup: Actually, it only looks like its working, but it is not really.

          When you have a monolingual weblink associated with for example no template at all (blank), you find that the YAMS-Wayfinder combo as described above is not really picking up the stuff correctly. I still suspect this goes down to what I describe in my post referred to above.

          If you then associate the weblink with a mutilingual template, the corresponding template variables are associated and prepared for the weblink as well (as PMS describes above). Now, if you put your menu text into the language-specific fields for the menu, YAMS-Wayfinder will show this correctly. Now, if you disassociate your weblink with the multilingual template back to for example the blank (monolingual) template, the multilingual fields of course are not shown anymore. However, their content still lives somewhere and then template variables are still picked-up by YAMS.

          That’s why in my old setup I thought it was working: I had some hidden multilingual template variables that still carried the correct content in the menu field so that the menu entry appeared correctly. However, in MODx the weblink appeared as monolingual again.

          So the workaround here is to associate weblinks with multilingual templates as well and if for any reason you need them to be monolingual, by all means fill in the multilingual menu fields and then change the template back. Nasty, I know, but it seems to work at least.

          I feel this is something to be patched in YAMS. PMS, what do you think?
          • Quote from: PMS at Nov 19, 2009, 11:26 PM

            Ah ha...

            First make sure that the RTE setting is set to off for the document. Save it to apply the change if necessary. Then...

            If you want your weblink to point to a MODx document, then type the id of the document you want to link to into each of the multilingual content fields.

            If you want your weblink to point to an external webpage, then type the address of that webpage into each of the multilingual content fields.

            That should be it.

            Thats works for me - thanks a lot
            • Hello, i have evo 1.0.6 and y was trying put a weblink (outbound link) in my wyfinder top menu that switch languages using YAMS.

              After a lot of time looking for a solution, because yams does not recognize weblink in my main menu, i make a trick that works perfect for me:

              1. to the weblink page, assign the template that yams is using to apply different tabs languages, and fill the information most important the info for the menu (menutitle (en) - menutitle (es) - menutitle (fr) etc...) save it.

              2. just change the template for a template that is not assigned to yams (ej: jminimal template) and that is all, because Yams still reading the information on the menutitle page, and display the weblink in different languages, but because we change the template, yams is not interrumping the weblink function.

              i hoe that works for you too...

              have a grat day aveyone! laugh
              • Yes, but.. (sorry if mentioning this double) when you are first in multilangual mode and then go back to using a Weblink (i.e. in a Minimal Template) then some content is showing up in the Weblink-field. This can contain html and therefor can break your Manager View. So to play safe, first I delete content before going back to 'regular mode' for WebLink'ing.

                It probably is already handeld elsewhere? I just ran into it today while discovering yams. I use 1.2.0rc3 and Evo 1.0.6

                  Accelerate your Windows system with 9.8 m/s2.