Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm currently building a multilingual site in Umbraco using a multi-site structure, where each language is represented with a subtree in the content tree.
Now I'm in the process of planning how to add sidebar widgets to the site. It must be possible to add individual widgets for each language (subtree) of the site, which is why I have choosen to create a SidebarContainer documenttype to contain all SidebarWidgets. The SidebarContainer is rooted as a node in each language subtree.
As far as I see this solution, it makes it easy to maintain and add widgets independently for each language, and then I can use a control (as for example uComponents MNTP) to select the nodes on each content node that have sidebar widgets.
Nevermind. I have chosen a little different approach.
I have created two new container documenttypes, SidebarContainer and SidebarLanguage, where SidebarContainer is located outside the content-tree. I use an XPATH expression with Multi-Node Tree Picker to be able to select and sort each widget that is located beneth the SidebarLanguage type. Then each type of widget is simply given their own documenttype to be able to differentiate between them.
On every page where widgets are available, an XSLT macro is added. The code for the macro iterates through each node picked with MNTP and then applies the appropriate template to the selection.
Works as I want since the "dummy" nodes not are rooted inside the actual content-tree. Only minor drawback is that content editors can add any given widget to any given language node (because of the multi-site structure).
I hope this little explanation can be of any help to others :)
what version of Umbraco? if you don't specify a Template on a content node then it should return a 404 if you access the Url.
Version 6.1.3. I do know about not specifying a template on a content node, but that doesnt prevent extensions like XSLTsearch from indexing the node.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted