Share a page across multiple language trees
Permalink
I have a multi-lingual site with trees in English and French (so far). However, one of the pages is actually already multi-lingual in it's content and so needs to be the same in both trees.
I could copy it to both trees, but maintaining the content and keeping it in sync on both could get messy.
So far the best solution I've come up with is to only have it in the English tree, and link to that from the French tree.
Is there some way to share a page (and sub-pages of it) between multiple language trees? Will the language switcher be able to handle this?
I could copy it to both trees, but maintaining the content and keeping it in sync on both could get messy.
So far the best solution I've come up with is to only have it in the English tree, and link to that from the French tree.
Is there some way to share a page (and sub-pages of it) between multiple language trees? Will the language switcher be able to handle this?
I've come up with a better solution - re-creating the page as a Single Page, and making it global by zeroing the siteTreeID and cParentID in the pages table of the database. Seems to basically work, though it's a bit of a hacky developer solution.
+ add some code to detect the current language in order to substitute correct links to child pages or controller routes, e.g.