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
Hi All I try to count all children nodes with 'umbracoNaviHide' = 0 What I wrote is: [quote] [/quote] But it counts all child nodes. How do I add the condition for it? Thank you
select="count($navigationNodes/child::node[string(data [@alias='umbracoNaviHide']) != '1'])" /> Petr
Thanks Petr. It works fine.
How do you actually set the value of 'umbracoNaviHide' on a page? for eample i dont want my sitemap tobe diplayed in my navigation menu.
Add a property to the page of type "true/false" with an alias of umbracoNaviHide, that should do it.
if you are trying to solve this with 4.5 syntax or newer try:
select="count($navigationNodes/descendant-or-self::* [string(umbracoNaviHide) != '1'])"
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to count all child nodes with 'umbracoNaviHide' = 0 (solved)
Hi All
I try to count all children nodes with 'umbracoNaviHide' = 0
What I wrote is:
[quote]
[/quote]
But it counts all child nodes. How do I add the condition for it?
Thank you
select="count($navigationNodes/child::node[string(data [@alias='umbracoNaviHide']) != '1'])" />
Petr
Thanks Petr. It works fine.
How do you actually set the value of 'umbracoNaviHide' on a page? for eample i dont want my sitemap tobe diplayed in my navigation menu.
Add a property to the page of type "true/false" with an alias of umbracoNaviHide, that should do it.
if you are trying to solve this with 4.5 syntax or newer try:
select="count($navigationNodes/descendant-or-self::* [string(umbracoNaviHide) != '1'])"
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.