Is there a way of pulling through the value of a navon property through to the global template? Basically if a keyword has bee nset on the navon i want to remove some HTML markup. If i use the following i get the value of the navon that i want but it only works for items that have child nodes.
Well i thought that was the case but after adding a test submenu to a bottom level folder it didnt make any difference. I can’t see how it would work on some navons but not others as it should be the ‘self’ node as in code below.
Ok - after much tinkering it seems that it is the nav image that determines if the navon value is pulled through or not?? If there is no navimage set it cant locate the navon’s property.
There are two properties on navon content type, no_selector and no_variable.
The property no_selector corresponds to Image Selector field in the navon content editor and no_variable corresponds to Variable Selector.
You have to set these values appropriately in the navon item to get them in the glabl template.
we have added a custom property to the navon as well that is populated by a list of keywords - this is the value i am trying to pull through. When i view the source of the ‘view content’ the value is set and is there?
In the macro I posted, you don’t care what template you use, because all you really need is the content node, and this will be the same for ALL possible templates.
If you were going to examine the output of the template, or the bindings, then you would care about the template.
As it stands, the only important thing is that the Assembly Service gets called with the correct content item.