I've double-checked my checkbox property name "umbracoNaviHide", and the umbraco.config is setting the page to <umbracoNaviHide>1</umbracoNaviHide>. I've even deleted the config file, and still the page is not hidden.
Have an xslt generating the menu. Could there be a conflict arising here, allowing the browser to show the page link even though it is hidden in the config?
Did you use the default build in XSLT template for your navigation? I think it could be a lot easier to help if you could provide us with the XSLT code you are using to render the navigation. Thanks.
Works like a charm, Kim ;~) Thanks. Not sure what you mean by "show you the entity"? I had some help creating that script, and as far as I recall there are no created entities. Where would they be created?
I was looking on W3C and could not locate hidden. It appears you simply substituted this with
I thought that you where using some kind of entity since you where reffering &hidden; which might contain the umbracoNaviHide, or something like that. If this doesn't make any sense to you don't mind :)
Cool. I created that entity at an early developmental stage because my menu was not presenting any links. The entity helped initially, before I learned I need to initialize umbracoNaviHide by setting the property on a docType so the xslt can run properly. Was not certain that &hidden; was a call to it. Now the pieces are falling into place.
I'm glad to have it cleared up, and changing the legacy will most likely allow that script to run. But I think the change you provided is cleaner. Still nice to know. Learned something new.
I tested the entity that corresponds with the new XML schema and that did the trick. Both methods work, but I'm checking the entity change as a solution, as that was the initial problem. Thanks for the help Kim!
umbracoNaviHide not hiding
Hi,
I've double-checked my checkbox property name "umbracoNaviHide", and the umbraco.config is setting the page to <umbracoNaviHide>1</umbracoNaviHide>. I've even deleted the config file, and still the page is not hidden.
Have an xslt generating the menu. Could there be a conflict arising here, allowing the browser to show the page link even though it is hidden in the config?
Hi Dwayne
Did you use the default build in XSLT template for your navigation? I think it could be a lot easier to help if you could provide us with the XSLT code you are using to render the navigation. Thanks.
/Kim A
Davs Kim,
Yeah, code helps. Just thought I'd throw out the question first. Maybe it's something simple. Anyway, I am checking hidden docs: [not(&hidden;)]
Could you try this instead:
Does that make a difference?
I can see that you are using an entity called "hidden", could you maybe show us this as well, if the above doesn't work.
/Kim A
Works like a charm, Kim ;~) Thanks. Not sure what you mean by "show you the entity"? I had some help creating that script, and as far as I recall there are no created entities. Where would they be created?
I was looking on W3C and could not locate hidden. It appears you simply substituted this with
and string(umbracoNaviHide) != '1'
correct?
Wait! I did create that entity and forgot about it. DOH!
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY hidden "data[@alias = 'umbracoNaviHide'] = 1">
]>
Not sure why it prevents the pages from hiding. Any clue on your end?
Yeah that's correct.
I thought that you where using some kind of entity since you where reffering &hidden; which might contain the umbracoNaviHide, or something like that. If this doesn't make any sense to you don't mind :)
Anyway, I'm glad you got it working.
/Kim A
Ahh cool enough. The entity you created are created for the legacy XML schema I see.
You could try changing this:
<!ENTITY hidden "data[@alias = 'umbracoNaviHide'] = 1">
to something like this:
<!ENTITY hidden "umbracoNaviHide = 1"> or this <!ENTITY hidden "string(umbracoNaviHide) = 1">
Not sure if this works, but it might be worth a try :)
/Kim A
Cool. I created that entity at an early developmental stage because my menu was not presenting any links. The entity helped initially, before I learned I need to initialize umbracoNaviHide by setting the property on a docType so the xslt can run properly. Was not certain that &hidden; was a call to it. Now the pieces are falling into place.
I'm glad to have it cleared up, and changing the legacy will most likely allow that script to run. But I think the change you provided is cleaner. Still nice to know. Learned something new.
I tested the entity that corresponds with the new XML schema and that did the trick. Both methods work, but I'm checking the entity change as a solution, as that was the initial problem. Thanks for the help Kim!
Cool! Great to hear that the entity trick worked as well :)
/Kim A
is working on a reply...