Tac-Lite - Menu to all items they have permission to view

jeditdog - June 14, 2008 - 20:17

I'm using Tac-Lite and I love it!

Once a user logs in, I'd like to give them a menu of all the "Privacy-Protected" content that they have access to. Is there a block or module our there that does this?

thank you for your help and direction.

...

tm - June 14, 2008 - 20:29

correct me if i am wrong...

you can create your custom menu of your protected content (views, taxonomy lists, pages, etc.), which will create a corresponding block. use the block permissions to determine which role(s) can see it (block visibility), weight it as needed, place it in an appropriate slot in your theme.

hope that works.

This sounds like a good

jeditdog - June 14, 2008 - 21:07

This sounds like a good direction to go in. I don't see how to do the custom Menu for the protected content though.

Will you explain it further?

I've been experimenting and have some ideas, but I don't think I'm doing exactly what you're saying because I'm getting the link to appear for all my users -- and then they just get "access" denied when they visit there.

-------------
The main man of MMC :)

well...

tm - June 15, 2008 - 18:48

you know how you can do a "add menu" in administer menus? use that to create a new/additional menu. add the pointers to your content there; it will be a separate block (or blocks) from the default nav menu.

once you have that, you should be able to use the block admin tools to setup "role-specific visibility settings;" be sure "anonymous" and "authenticated" are unchecked. and you have to have something checked, or it is just like "anonymous."

just a note: be careful how many blocks you activate; it appears there is some resource overhead, whether or not the block(s) is/are seen.

good luck!

looking at code

jeditdog - June 14, 2008 - 22:34

I got to looking at the code for Tac_Lite and noticed it had a function:

tac_lite_menu($may_cache)

Should this function be creating a menu? I don't see it anywhere, but if there's a way to get this going, that would be great!

Please advise

-------------
The main man of MMC :)

 
 

Drupal is a registered trademark of Dries Buytaert.