|
27 | 27 | </button>
|
28 | 28 | <div class="mt2" ng-show="model.value.type == 'content'">
|
29 | 29 | <umb-icon icon="icon-search" class="icon"></umb-icon>
|
30 |
| - <button type="button" class="btn-link" ng-click="showSearch = true">Query for root node with xpath</button> |
| 30 | + <button type="button" class="btn-link" ng-click="showSearch = true">Query for root node with XPath</button> |
31 | 31 | </div>
|
32 | 32 | </div>
|
33 | 33 |
|
|
36 | 36 | <input type="text"
|
37 | 37 | ng-model="model.value.query"
|
38 | 38 | class="umb-property-editor umb-textstring"
|
39 |
| - placeholder="Enter xpath query"> |
| 39 | + placeholder="Enter XPath query"> |
40 | 40 |
|
41 | 41 | <ul class="unstyled list-icons mt3">
|
42 | 42 | <li style="max-width: 600px">
|
43 | 43 | <umb-icon icon="icon-help-alt" class="icon"></umb-icon>
|
44 |
| - <button type="button" class="btn-link" ng-click="showHelp = !showHelp">{{showHelp ? 'Hide' : 'Show'}} xpath query help</button> |
| 44 | + <button type="button" class="btn-link" ng-click="showHelp = !showHelp">{{showHelp ? 'Hide' : 'Show'}} XPath query help</button> |
45 | 45 |
|
46 | 46 | <div class="small" ng-show="showHelp">
|
47 | 47 | <p>
|
48 |
| - Use Xpath query to set a root node on the tree, either based on a search from the root of the content tree, or by using a context-aware placeholder. |
| 48 | + Use an XPath query to set a root node on the tree, either based on a search from the root of the content tree, or by using a context-aware placeholder. |
49 | 49 | </p>
|
50 | 50 |
|
51 | 51 | <p>
|
52 |
| - Placeholders finds the nearest published ID and runs its query from there, so for instance: |
53 |
| - |
54 |
| - <pre>$parent/newsArticle</pre> |
55 |
| - |
56 |
| - Will try to get the parent if available, but will then fall back to the nearest ancestor and query for all news articles there. |
| 52 | + A placeholder finds the nearest published ID and runs its query from there, so for instance: |
| 53 | + </p> |
| 54 | + |
| 55 | + <pre>$parent/newsArticle</pre> |
| 56 | + |
| 57 | + <p> |
| 58 | + Will try to get the parent if available, but will then fall back to the nearest ancestor and query for all news article children there. |
57 | 59 | </p>
|
58 | 60 |
|
59 | 61 | <p>
|
60 | 62 | Available placeholders: <br/>
|
61 |
| - <code>$current</code>: current page or closest found ancestor<br/> |
62 |
| - <code>$parent</code>: parent page or closest found ancestor<br/> |
63 |
| - <code>$root</code>: root of the content tree<br/> |
64 |
| - <code>$site</code>: Ancestor node at level 1 <br/> |
| 63 | + <code>$current</code>: Current page or closest found ancestor<br/> |
| 64 | + <code>$parent</code>: Parent page or closest found ancestor<br/> |
| 65 | + <code>$root</code>: Root of the content tree<br/> |
| 66 | + <code>$site</code>: Ancestor node at level 1<br/> |
| 67 | + </p> |
| 68 | + <p> |
| 69 | + Note: The placeholder can only be used at the beginning of the query. |
65 | 70 | </p>
|
66 | 71 | </div>
|
67 | 72 | </li>
|
|
0 commit comments