Quick Nav:  Online Store   |   Login | Register

Pages with 'Admin' in the title

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Gary Green
<50 Posts
Posts:20


07/16/2008 10:45 AM  

I've noticed that any page with the word 'Admin' in the title, i.e. 'Administrative' is excluded from the CSSNavMenu, but is included in the Admin/Host dropdown. In perusing the forum I see that you've added the ability to use Regex in the IncludeTabs and ExcludeTabs properties.

I can't figure out how to get around this: I have a page called  'DST Administrative' and have tried adding ' ExcludeTabs="DST Administrative" ' to the AdminHostList component, but it still shows up, and of course DOESN'T show up in the CSSNavMenu due to ' ExcludeTabe = "Admin,Host" '

I need to keep the name 'DST Administrative', so changing the name is not an option. Do you have any suggestions?

John Mitchell
Posts:3471


07/16/2008 11:22 AM  

Hi Gary,

If you use ExcludeTabs="^Admin$,^Host$" for the main menu, and IncludeTabs="^Admin$,^Host$" for the AdminHostList it should take care of this issue.

Gary Green
<50 Posts
Posts:20


07/16/2008 12:03 PM  

Well, that takes the page I want to appear in the main menu out of the Admin/Host dropdown, and it is now visible on the main menu. But now 'Admin' and 'Host' appear in the main menu (and are unclickable), in addition to the Admin/Host dropdown (where they work like they're supposed to).

John Mitchell
Posts:3471


07/16/2008 12:33 PM  
Sorry, that code has changed recently and I can't quite remember what exactly it is looking at.
maybe it is the tabpath.

Try this:
ExcludeTabs="^/Admin,^/Host" on the main menu.
Gary Green
<50 Posts
Posts:20


07/16/2008 12:46 PM  

No, that's not it; no change.

John Mitchell
Posts:3471


07/16/2008 1:08 PM  
Ok, i'll have to open the code and see if I can figure out why.

The main problem is that it is not excluding the Admin & Host items from the main menu now, correct?
Gary Green
<50 Posts
Posts:20


07/16/2008 1:13 PM  

Correct. The main menu shows 'Admin' and 'Host', but not their sub-pages, and they're not clickable.

Gary Green
<50 Posts
Posts:20


07/17/2008 12:12 PM  

I've also noticed in the Admin pages (using the same DNN skin and CSSNavMenu), the Admin and Host Levels AND their child pages show up (with missing icons).  Ideally I would want to get rid of any references to Admin and Host in the main menu, whether it be for users or for admins.

John Mitchell
Posts:3471


07/17/2008 2:16 PM  
Hi Gary,
Sorry for the delay. It was the tabpath, but apparently that has two slashes at the front.
The correct exclude should look like this:

ExcludeTabs="^//Admin$,^//Host$" on the main menu
Gary Green
<50 Posts
Posts:20


07/18/2008 2:41 PM  

That appears to have done the trick.

Thanks very much.

Gary

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >CSS NavMenu > Pages with 'Admin' in the title



ActiveForums 3.7
Powered by: Snapsis Software