Display Module on non dashboard or settings pages
What is the best controller method to make code run on all pages but dashboard and settings pages.
ive used Discussions_render_before and Base_render_before
but i cant get it to show on discussion lists or category lists.
ive used Discussions_render_before and Base_render_before
but i cant get it to show on discussion lists or category lists.
0
Comments
public function Base_Render_Before(&$Sender) { if (!in_array('Garden.Settings.Manage', $Sender->RequiredAdminPermissions)) //code }
Regarding not using render before is there a better way to add a module to the panel?
You can use CategoriesController_Render_Before if you need it on those pages too.