Hi all,
i was setting up permission for different users on different language nodes, so that only content editors can make changes to their localized site only. but i have a got a situation here- i am using content picker datatype which is configured to pick content from any node under "Content" section so this content picker can pick content from A node while being used on B node regardless of access permissions
so should i go with this flow? or is it a bug which will be fixed in next versions of umbraco? because if i will configure my CMS this way right now it will break once it gets updated.
Second thing can i configure my content picker to pick inside two nodes those are not parallel to each other ? right now its lets me set up only one node to pick as start node
It should to me that you should try to have a look at the Multinode Treepicker, with this picker you can configure it to pick inside a specific site, or specific document types.
With the Multinode Treepicker you also have the possibility to set a minium and a maximum of nodes that should be picked. Try to have a look at the documentation.
//get the first textpage below the current document
$current/textpage: current page or closest found ancestor
//get a descendant of type news article somewhere below the parent
$parent//newsArticle: parent page or closest found ancestor
//go to the root the content tree
$root
//go the ancestor at @level=1 where your website root usually is.
$site: Ancestor node at level 1
Access permission for data types
Hi all, i was setting up permission for different users on different language nodes, so that only content editors can make changes to their localized site only. but i have a got a situation here- i am using content picker datatype which is configured to pick content from any node under "Content" section so this content picker can pick content from A node while being used on B node regardless of access permissions
so should i go with this flow? or is it a bug which will be fixed in next versions of umbraco? because if i will configure my CMS this way right now it will break once it gets updated.
Second thing can i configure my content picker to pick inside two nodes those are not parallel to each other ? right now its lets me set up only one node to pick as start node
Thanks in advance
Yogesh
Hi yogesh,
It should to me that you should try to have a look at the Multinode Treepicker, with this picker you can configure it to pick inside a specific site, or specific document types.
With the Multinode Treepicker you also have the possibility to set a minium and a maximum of nodes that should be picked. Try to have a look at the documentation.
https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/multinode-treepicker
Hope this helps to archive what you need.
/Dennis
Hi Dennis, that really helped , thanks a ton! do we have any detailed documentation on x path queries in Umbraco site?
Thanks
Hi yogesh,
I have found some old documentation about xPath for XSLT and so. Even it´s a bit old I hope this can give you an overview.
https://our.umbraco.org/wiki/reference/xslt/xpath-axes-and-their-shortcuts/
https://our.umbraco.org/wiki/reference/xslt/using-xpath/xpath-examples/
Also if you see the documentation for https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/multinode-treepicker then you have
Hope this helps,
/Dennis
is working on a reply...