-
Notifications
You must be signed in to change notification settings - Fork 58
Data Source Xml
The XML Data drop down specifies the source XML to use, this can be the built-in Umbraco Content, Media or Members, or it can be from any URL or file (in which case a further config field is shown).
Three XPath expressions are required to configure how key / labels are generated from the source XML. The first, Options XPath defines the node-set representing all of the options, whilst the remaining two, Key XPath and Label XPath are evaluated against each of these options in turn, where the first matched node value for each is used.
-
Select all nodes with alias NewsItem:
//NewsItem
-
Select all nodes with alias NewsItem or DateEvent:
//NewsItem | //DateEvent
-
Select all nodes with alias NewsItem or DateEvent that are hidden:
//*[self::NewsItem or self::DateEvent][umbracoNaviHide = 1]
-
All Textpage nodes where a media item has been selected in their pageImage property:
//Textpage[normalize-space(pageImage)]
-
Select all nodes with alias NewsItem that are underneath a node with alias News on the current site (indicated with a site node of alias HomePage):
$ancestorOrSelf/ancestor-or-self::HomePage[position()=1]//News//NewsItem
-
Select all media files less than 5KB in size:
//*[umbracoBytes < 5120]
-
Select only Folders at the root level of the Media tree:
//Folder[@parentID = -1]