Injecting a custom header


(Salman, Freelance Developer) #1

I know you can inject costom HTML via the control panel, but I want to get some ideas around how to best create a plugin to inject dynamic HTML above/below the <div class="list-controls">...</div> section.

Based on the role of the user, or the category they are viewing, I want to display a different set of HTML links.

Say I want to display:

<ol><li><a href="">link 1</a></li></ol>

Based on the users role, I will have different set of links displayed (or hide the section completely).