Hi,
I started to use MODX some weeks ago and I really like how it works and was designed, but I have got a questions about Ditto and UltimateParent.
I set up my site to be a multi lingual site. I followed the how-to from
http://wiki.modxcms.com/index.php/Make_Multi_Lingual_Site to realize that.
I have got two sub-resources (en, de) where my sites are stored to be able to switch between them with just a click. This works just fine, but now I want to show news in the sidebar, depending on the language, but not depending on the currently selected site.
In every language-sub-resource, I have got a ’News’-sub-resource containing News-entries.
That looks like:
en
--> News
--> First entry
--> Second entry
--> ...
de
--> News
--> First entry
--> Second entry
--> ...
At the moment the part that is responsible for that, looks like this:
<h3>News</h3>
<p>
[!Ditto? &startID=`[[UltimateParent? &topLevel=`2`]]` &summarize=`3` !]
</p>
When I switch to any other site than the ’News’ site, it does not show me the news, but instead every sub-resource of the selected site.
I know that this happens, because I use
UltimateParent, but I have no idea to achieve what I want do to.
That is: If I select ’en’, I want to get just ’News’ from ’en’-container and the same thing with ’de’.
I am using the latest release of Evolution.
If you need further information, please tell me.
Thanks,
zalat