[SOLVED] How to add Module links to menu??
Posted: Tue Feb 28, 2012 6:10 am
Hi all,
Not sure if this is in the right area of the forum, so please feel free to move it if necessary.
What I am trying to do is have a link in the header menu of the administrator panel for various modules.
The reason for this is I don't want the other admins (with lower permissions) to be able to see ALL the modules. Currently I am using <?php if ($this->user->getId() == 1) { ?> to hide the 'Modules' page from the other admins, however I would like to isolate a few module links and place them in the top menu next to Dashboard, Catalog etc. for them to be able to see and use.
At the moment if I just place the link, I will constantly receive a token error and be logged off - see example below:
If I want to place a link to the 'Featured' module in my top menu and use this as the href value -- index.php?route=module/featured&token=b5c60e2a70b515e57c81dc8928e8d64a -- obviously this cannot work as the token must be generated each time you click on the Featured module link through the 'Modules' page.
Any information on how to do this is greatly appreciated.
Not sure if this is in the right area of the forum, so please feel free to move it if necessary.
What I am trying to do is have a link in the header menu of the administrator panel for various modules.
The reason for this is I don't want the other admins (with lower permissions) to be able to see ALL the modules. Currently I am using <?php if ($this->user->getId() == 1) { ?> to hide the 'Modules' page from the other admins, however I would like to isolate a few module links and place them in the top menu next to Dashboard, Catalog etc. for them to be able to see and use.
At the moment if I just place the link, I will constantly receive a token error and be logged off - see example below:
If I want to place a link to the 'Featured' module in my top menu and use this as the href value -- index.php?route=module/featured&token=b5c60e2a70b515e57c81dc8928e8d64a -- obviously this cannot work as the token must be generated each time you click on the Featured module link through the 'Modules' page.
Any information on how to do this is greatly appreciated.