Ok
As I understand also from this post http://www.typolight-community.org/v...&t=273&start=0
Typolight does not support one-root multilanguage sites.
But it will be definitely easier to maintain a multilanguage site with only one root.
Imagine what happens when you have 20 or more pages in a tree. It becomes a mmess hard to maintiain.
Also if you use some modules you need to make copies of them just because of the language.
In TYPO3 CMS for example this was not needed. If the used strings in a module are translated they automatically switch to the current language. And you do not need to copy the module to point to another page.
Hope you understand what I am talking about.
Anyway this would be a Very good to have feature.
Here is how we could achieve multi-language menu with only one root supposing that we have a "lang" column in table tl_article
Code:
SELECT c.* FROM tl_pages as p, tl_article as c
WHERE
p.pid=?
AND c.pid=p.id
AND (c.lang=?)
AND (c.published=1)
---other constraints here
ORDER BY p.sorting
LIMIT 1000
Calling this query recursively will do the job.
May be I need to make a feature request .
Bookmarks