|
|
 Rank: Enthusiast
Joined: 2/28/2008 Posts: 35 Location: South Africa
|
Hi all
I am using a dropdown menu, and have instances such as:
Staff - Executive - Board - Junior school - Senior School
etc
I need the top level "staff" page, so I cannot hide it, however, I do not need to put any content in it, since all the content is held in the items underneath. I have searched and cannot find any plausible solution for doing either one of the following:
a: redirect that page to "Executive" b: make that page un-hperlinked (if that is a word!)
I would ideally like to do it outside of a template or my XSLt navigation (i.e. in the content). Any ideas? I was hpoing I could modify the "Link to document" value or put a very basic Response.Redirect in the html of the content
If I can do it by creating a new template, then I am happy to go that route, but then I need to add the ability to place a content picker as a property, that will pass the redirect node through to the template. Hope my ramblings make sense
Andrew
|
|
 Rank: Fanatic
Joined: 7/20/2006 Posts: 477 Location: NL
|
Hi Andrew,
both options you want are allready built-in in umbraco. Just edit your document-type and add 2 properties: umbracoRedirect and umbracoNaviHide umbracoRedirect being a contentpicker and umbracoNaviHide being a boolean (yes/no)
If the redirect is filled, upon requesting of that page, it automatigically redirects to the selected node. Offcourse, the umbracoNaviHide is used in the Navigation.xslt to 'hide' the page in the navigation, meaning, you can check for the value, if yes, don't put link on it, if no, put link on it.
I hope I make some sense here, I'm in a bit of a hurry ;)
PeterD
Working on an events-calendar with recursion. Post requests on my blog!
|
|
 Rank: Enthusiast
Joined: 2/28/2008 Posts: 35 Location: South Africa
|
Hi peterD
thanks for that. I know about umbraconivhide, which was not an option, as I dont want to hide the page from my menu structure. However, I did not know about the umbracoRedirect, and am ever so pleased to learn of that - thanks very much
Andrew
|
|
 Rank: Fanatic
Joined: 7/20/2006 Posts: 477 Location: NL
|
Andrew,
you could add a different property instead of umbracoNaviHide then. Then, in your xslt, check for that value and either show just the name or show the full link. I just mentioned umbracoNaviHide so you could use it as example.
For the umbracoRedirect, you only need to add it to the document-type. Umbraco will take care of the rest if there is a value in it.
HTH, PeterD
Working on an events-calendar with recursion. Post requests on my blog!
|
|
 Rank: Enthusiast
Joined: 2/28/2008 Posts: 35 Location: South Africa
|
ok - good point. The good thing is that umbracoRedirect does everything I need and more. I must remember to reference the field-list more often!
It amazes me daily how well designed Umbraco is, and as there are some many options and permeatations I understand why documentation is a monementous task.
Thanks again Andrew
|
|
|
Guest |