Jump to content

Using templates in admin addon module?


24khost

Recommended Posts

from the addon guide

 

Sidebar
An addon module can also define HTML code to be displayed in the sidebar. You can do
anything you want with this, but it is ideal for creating custom sub menus specific to a
custom module.
The function is passed all the same variables as the main content output function, and so
can be used like this:
function your_module_name_sidebar($vars) {
$modulelink = $vars['modulelink'];
$username = $vars['username'];
$password = $vars['password'];
$sidebar = '<span class="header"><img src="images/icons/addonmodules.png"
class="absmiddle" width="16" height="16" /> Sample</span>
<ul class="menu">
<li><a href="#">Sample Sidebar Link 1</a></li>
<li><a href="#">Sample Sidebar Link 2</a></li>
</ul>';
return $sidebar;
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated