We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25483
    • 741 Posts
    Is it possible to make pages only available to 1 language? I need to have "local" news pages for every language (10+).

    I know it’s possible to make mono-lingual pages, but that is bound to 1 language for every page that is mono-lingual.
      with regards,

      Ronald Lokers
      'Front-end developer' @ h2o Media

      • 9994
      • 133 Posts
      Hmm, yes i have some pages too which are newspages and have to be visible in only 1language, if u go to the other language by clicking the flag then the content is empty sad

      Somekind of checkbox would be nice. Hope that can be acompliched wink
        Best CMS eva!
        • 22851
        • 805 Posts
        It’s not possible to do that at the moment I’m afraid and I’m struggling to find a good way to achieve what you want using the current system.

        "Template and document specific language disabling." has always been on the To Do list. It’s a fairly major task that I do hope to implement one day (provided I can find a way to do it in a reasonably efficient manner). That’s likely to be on the timescale of months rather than days or weeks though I’m afraid.

        Like @fourroses suggested, I envisaged allowing a multilingual checkbox TV to be specified called "disable_lang" or something like that that could be used to disable individual languages for individual documents. The specified language variants of those documents should then no longer appear in Ditto and Wayfinder results etc.
          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.
          • 25483
          • 741 Posts
          I think a checkbox option is what we are looking for, it’s by far the easiest way to do that in your document structure. But that would also mean that you have to add some stuff to the managermanager config to hide the disabled languages after saving.

          @PMS Is this something you can develop fast or does this take much time? I could ask my boss if we can do some donating if you can arrange that!
            with regards,

            Ronald Lokers
            'Front-end developer' @ h2o Media

            • 22851
            • 805 Posts
            Quote from: MediaGuy at Jan 21, 2010, 02:07 AM

            @PMS Is this something you can develop fast or does this take much time? I could ask my boss if we can do some donating if you can arrange that!
            The changes required would necessarily affect the core code, including YAMS document parsing and assessment of URLs to determine document id + language. So there would be plenty of scope for breaking YAMS or encountering unexpected complications. I’d need a solid block of time to be able to give it a go; something like a couple of days, but I’m just not able to commit that right now I’m afraid - certainly not in the next few of weeks. If I can find a suitable window of time to do it in I’ll let you know.
              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.
              • 16545
              • 358 Posts
              Maybe we can do it with phx plugin for this moment...
              Smth. like that:
              [+phx:if=`disable_multilang`:is=`1`:then=`[[YAMS? .. &lang=`default`]]`+]
                • 25483
                • 741 Posts
                I think all I need at this moment is a snippet that checks the current language with a defined language (in a TV) and redirect to a predefined ID if it’s not the same. Does someone know how I can create something like that??

                That way I can create containers with pages in 1 language and stop other languages from looking into that container.
                  with regards,

                  Ronald Lokers
                  'Front-end developer' @ h2o Media

                  • 9994
                  • 133 Posts
                  Hi,

                  Would also like to see some pages only into 1 language sad
                  (newspages)

                  Are there any updates onto it?
                    Best CMS eva!
                    • 22851
                    • 805 Posts
                    Sorry. Haven’t found time to look into this yet.
                      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.
                      • 25483
                      • 741 Posts
                      Any news on this?
                        with regards,

                        Ronald Lokers
                        'Front-end developer' @ h2o Media