| Re: Links in Theme based on user groups |
| by mboyden on 2008/1/17 20:19:51 No, groups don't exist in smarty variables unless defined in the php code some way. However, you could also use some php code in the template, the set a smarty variable with that information then accessible in the template for further usage. |
| Links in Theme based on user groups |
| by Krispy on 2008/1/17 18:20:41 I am working on a theme that needs to have links in the header/top nav that must be based on user groups. I know I can include <{if}> statements based on if the user is admin, user, or guest, but can I include one for user group? For example, I have a link that only users in group ID 4 can view, is there an <{if}> statement that restrict that link from showing unless the logged-in user is in group ID 4? |