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

    Now that my first YAMS-powered site is being set up, I get questions about the usage. I’m using 1.1.7. alpha RC 7.

    First question: For the menu I am currently using the provided YAMS-tepmlates for wayfinder (folder docr). This template needs the "menu title" to be set for each document. I usually do not set it, because the page title is very fine for the menu (with exceptions). Thus, my menu initially stays blank.

    Second question: Is it possible to use multilingual user friendly URLs? It would be very nice, if a document could be called by "/de/kontakt.html" resp. "/en/contact.html". Is this possible?

    Thanks and greetings
    Martin


    EDIT: I have just found ManagerManager’s field synching capabilities. But this restrains me from using a different menu title than page title.
    • Quote from: FuryDE at Dec 09, 2009, 03:23 PM

      First question: For the menu I am currently using the provided YAMS-tepmlates for wayfinder (folder docr). This template needs the "menu title" to be set for each document. I usually do not set it, because the page title is very fine for the menu (with exceptions). Thus, my menu initially stays blank.
      ...
      EDIT: I have just found ManagerManager’s field synching capabilities. But this restrains me from using a different menu title than page title.
      Three options:

      1) Make your own version of the yams Wayfinder templates. You can copy them into chunks and specify the chunk name instead of FILE: ... in the Wayfinder call if you prefer. Just replace the word menutitle by pagetitle in the YAMS snippet calls in the appropriate places in the templates.

      2) Use ManagerManager to synchronise the menutitles with the pagetitles. However, as you state, this would then prevent you from setting the menutitle independently.

      3) You may be able to use PHx to include the pagetitle if the menutitle is blank.

      Quote from: FuryDE at Dec 09, 2009, 03:23 PM

      Second question: Is it possible to use multilingual user friendly URLs? It would be very nice, if a document could be called by "/de/kontakt.html" resp. "/en/contact.html". Is this possible?
      Yes. It’s possible. Go to Modules>YAMS>Other Params>Multilingual Aliases and set Multilingual Aliases = Yes. You may also need to update your htaccess file according to Modules>YAMS>Server Config. You can then use the multilingual alias fields to set the document aliases per language.
        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.
      • Quote from: PMS at Dec 09, 2009, 03:58 PM

        Yes. It’s possible. Go to Modules>YAMS>Other Params>Multilingual Aliases and set Multilingual Aliases = Yes. You may also need to update your htaccess file according to Modules>YAMS>Server Config. You can then use the multilingual alias fields to set the document aliases per language.

        OMFG, this is AWESOME. shocked

        For the above problem: I must think what the best solution is. Currently I’m still enthusiastic about that cool MM’s synching feature.