-
☆ A M B ☆
- 24,524 Posts
This is easily dealt with with the TV I mentioned earlier. It can contain as many language references as needed. For example, the English page can have de:22 fr:46 it:78, so a snippet only needs to grab the TV’s value for that language and make the links. To programmatically determine what pages belong to what languages, simply find out what the ultimate parent of a given document is ($modx->getParents()) or find all the children of a given document ($modx->getChildren()).
As far as workflow goes, the Document Tree makes it pretty easy; you have everything right there at the click of a mouse. The main language ID is very simply the ID of the parent document/container for each language grouping. To get an array of all your language IDs, just grab all the published documents with a parent of 0.
The thing is, it’s much better to keep the core as simple as possible. I’ve had several clients who didn’t want the interliinking feature, so the TV wasn’t necessary. For those who do want it, it’s easy to add it. That’s the whole idea underlying TVs, modules and plugins. Add features to the front end or the back end without hacking the core. Because my feature is your nuisance, and doesn’t quite fit somebody else’s needs, you end up with hacks to the hacks, and a tangled mess that’s impossible to upgrade. I’ve been there, done that (cubecart, anybody?) and I am very grateful to Ryan, Jason, et al for giving me a tool to avoid that nightmare.
Hi, is there anything new on this? By now I use Joomla with Joom!Fish but Joomla can’t have different content types other than articles, and I need more flexibility on defining the content types (i.e. news, products with custom specific fields, gallery, catalog pages). ModX is perfect solution when it comes to flexibility in content. But so far I can’t find an acceptable solution of making multilingual sites. I need ONE page to have it’s corresponding alternatives in different languages - this is the way JoomFish works in Joomla. One ID, one button link, just different content based on user selected language. Is there a way of making this? And also to be easy editable from frontend by non techie people.
I’m pretty new to ModX, so excuse me if I misundestood something, but so far I didn’t read a real multilingual solution.
One more question - I read that ModX Revolution will have multilingual capabilities out of the box. Is that true?
That can be easily done; again by using TVs - one for each language (or keep the default content field for the main language, and only use TVs for the translations).
Simply store the user-choice in a cookie or php session, and output the language (TV) you need.
I think such a solution was already shown here in the past...
-
☆ A M B ☆
- 24,524 Posts