Generic Properties (e.g. "Hide in navigation") setting default values?
Hi,
I'm using a variant of the Runway FAQ module, and want my faqQestions to default to "Hide in navigation = true".
Currently, the Generic Property "Hide in navigation" (alias: umbracoNaviHide, Type: True/false) is defined in faqQuestion Document Type. This is fine, but it always defaults to false or not checked. Is there any way to turn this around? Hide in navigaition shoud be my default, with the option to switch.
Also, you can of course just reverse the condition in xslt, so that it umbracoNaviHide=0 then hide the page, check to unhide. Then just change the label from "hide from navigation?" to "show in navigation"
Your best bet is to reverse the logic in your output and the label of the document property. So, instead call it Show in navigation? and in your XSLT you would say:
I am a new bee in umbraco and i developing a site with multilingual structure. i had added the hide in navigation [ umbracoNaviHide ] and works fine but as i have also implemented relation to other languages i want to related this property also.
structure of site is :-
--English
-----section
-------section contents1 [ Hide in navigation is appiled.] <----------------| Both are related.
Generic Properties (e.g. "Hide in navigation") setting default values?
Hi,
I'm using a variant of the Runway FAQ module, and want my faqQestions to default to "Hide in navigation = true".
Currently, the Generic Property "Hide in navigation" (alias: umbracoNaviHide, Type: True/false) is defined in faqQuestion Document Type. This is fine, but it always defaults to false or not checked. Is there any way to turn this around? Hide in navigaition shoud be my default, with the option to switch.
Thanks!
R
Perhaps something like this would work for you? http://our.umbraco.org/projects/default-values-for-umbraco
Also, you can of course just reverse the condition in xslt, so that it umbracoNaviHide=0 then hide the page, check to unhide. Then just change the label from "hide from navigation?" to "show in navigation"
Dan
Your best bet is to reverse the logic in your output and the label of the document property. So, instead call it Show in navigation? and in your XSLT you would say:
Cheers,
Nik
so, question answered here by two community members in less than 10 minutes time...
i gave both of them a thumbs up... i hope the original poster comes back to give one of them the solution as it is a very helpful one for all.
impressive :-) Thanks!
I would recommend you try out this package ;)
http://our.umbraco.org/projects/standard-values-in-umbraco
On the project page you'll find a short screencast, which shows you how you can add default/standard values on your document types.
- Morten
Hello Everyone,
I am a new bee in umbraco and i developing a site with multilingual structure. i had added the hide in navigation [ umbracoNaviHide ] and works fine but as i have also implemented relation to other languages i want to related this property also.
structure of site is :-
--English
-----section
-------section contents1 [ Hide in navigation is appiled.] <----------------| Both are related.
-------section contents2 |
--German |
-----section |
-------section contents1 <------------------------------------------------------------- |
-------section contents2
etc.
what my question is how can i find the document ID of the related document and then i can set the property as i wannted.
Thanks in Advance.
is working on a reply...