17452 Posts in 4473 Topics by 1971 members
|Go to End|
18 November 2008 at 12:45am
I am building a site that uses part of it's Home page to hold content from a couple of subpages. I don't want these pages to show up in my dropdown menu so I have unchecked the 'Show in menu box' and now the content has disappeared from the Home page.
I'm using <% control Children %> to put the content there in the first place (I have a 'HomePage' page type with 'DidYouKnow' specified as its children). Is this the right thing to do? How do I get my content back without it appearing in the menu?
<% control Children %>
<div class="clear"></div><!-- clearing div -->
<% end_control %>
19 November 2008 at 11:58pm
I've managed to sort this now.
I wrote a jQuery script to apply the class .hideme to the menu items I wanted to disappear and used CSS to display: none;
Seemed a lot easier that trying to muck about with the code. If anyone has an alternative solution then I would love to hear it.
20 November 2008 at 2:19pm
<% control AllChildren %> will show all content, even those where the option to 'show in menu' is not checked.
20 November 2008 at 9:57pm
Thanks for that, LeeUmm. A very simple solution to a problem that had been driving me nuts for most of the day. Still, at least I learnt a little jQuery along the way which can't be a bad thing.
|Go to Top|