Help with automatically not showing certain doc types in navigation Options
jasonp
Posted: Thursday, October 02, 2008 4:28:45 PM
Rank: Newbie

Joined: 9/7/2008
Posts: 17
Location: Houston, TX
I have a series of news articles that users create on a daily basis. They currently live under the News node. I do not want these news articles to appear in my navigation or subnavigation each time they are created as it would make the navigation drop down list very long.

I am wondering what is the best way to aotumatically set the umbracoNaviHide property to true each time one of these news articles were created? I am not much of a .net developer but I think you would be able to do this with an action handler and if so could someone point me in the directyion of a tutorial or help me with the simple code to do this?

The only other option I would have I think would be to perform a filter on the News doc type in the navigation xslt I have to filter out these News Articles.

Appreciate any help,
Jason
drobar
Posted: Thursday, October 02, 2008 4:46:36 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,831
Location: MA, USA
I'd update the navigation xslt to not show any news doctypes. Something like the following in your for-each's select statement ...

Code:
<xsl:for-each select="...existing_code_here... and @nodeTypeAlias != 'myNewsDocTypeAlias]">


cheers,
doug.

MVP 2007-2009 - Percipient Studios
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.