Configre SiteMap to not show hidden pages (pages not on the menu)

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Configre SiteMap to not show hidden pages (pages not on the menu)

Post by Russ »

Does anyone know of a way to stop the sitemap plugin displaying pages which are not on the menu? e.g. hidden. I know it does not display active pages but I need this page to be active to work.

Basically this is for use with piSearch. I'm using a second page, 'searchresults', to display the results, but the 'searchresults' page is showing up in sitemap, even though it is not on the menu.

I've had a look at the sitmap code and can see some items can be skipped e.g. for non-active pages, but can't immediately see a way to do it with pages that are not in the menu?

Any ideas?

Russ
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: Configre SiteMap to not show hidden pages (pages not on the menu)

Post by Russ »

Particia, thank you for you solution and apologies in the delay in my reply. Your solution works brilliantly : )

I don't know who wrote this module (is it you?) but it might also be an idea to add CSS classes to the UL i.e. sitemap and also classes to the main levels i.e. level 1/2/3 etc and also to sub levels to allow them to be sytled as well. For example to make a better site map for a two level menu site, who may well want to add one style of icon to the top level links and one icon for the sub level links??

Just an idea, thank you again.

Russ
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: Configre SiteMap to not show hidden pages (pages not on the menu)

Post by Russ »

Thanks again, not sure what you mean by more accessible? My site map passes the machine 'AAA' tests. True there are many subjective test to apply before it could reach that level but surely this is probably more to do with formating (CSS) rather than structure as you are using a list already?

What do you have in mind, I'm heavily into accessibilty and standards compliance.

Russ
westis

Re: Configre SiteMap to not show hidden pages (pages not on the menu)

Post by westis »

Yes, indeed CSS classes should be added to the sitemap tag.

There's a new menu system in the making that also will make it possible to use one's own template for the sitemap. Then the user can for example make the choice of using an ordered or undordered list.

More about that when it's been more worked out how it'll work. :D
Post Reply

Return to “Modules/Add-Ons”