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
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.
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
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.
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
Sorry. Haven’t found time to look into this yet.