I have release a new module on trac. This one allow you to select the datasource dynamically with a XPath query in the dialog open when you insert a sublayout in webedit mode.
If you don't like the video version here is a small description of this module.
Purpose
If you have a multisite solution and if you want to use the field "Datasource Location" and "Datasource template" on you sublayout to open the datasource selection dialog when you add this sublayout on your page in page edit mode, you are not able to select the folder dynamically. by default sitecore only allow to select a folder like /sitecore/content/MyDatas.
The idea of this module is to enable the possibility to select this folder relatively to the current item with an XPath query as you do in the fields for example.
After installing this module you will be able to select this folder with a query syntaxt like this one for example:
Very helpful, but this seems to work only when we add a new sublayout. If we try to edit existing sublayouts on the page using page editor, it opens up the entire content tree. Any solutions?
Fantastic module. Should be something built-in on Sitecore :)
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteVery helpful, but this seems to work only when we add a new sublayout. If we try to edit existing sublayouts on the page using page editor, it opens up the entire content tree. Any solutions?
ReplyDelete