XF 2.0 Adding a nav item to the staff bar

Frode789

Well-known member
Is it possible to add a entry to the staff bar at the top? I have a new addon, which handles some staff related duties, and I'd prefer to move it out of the main navigation, and into the staff bar at the top.

staff bar.webp
 
Would it be complicated? Anyone able to point me in the right direction? :) Currently have a callback with xenMade\ToDo\Listener : todoNav to that entry in nav bar.
 
If it's a static link, you could put it into the PAGE_CONTAINER after
HTML:
                                <xf:if is="$xf.visitor.is_admin">
                                    <a href="{{ base_url('admin.php') }}" class="p-staffBar-link" target="_blank">{{ phrase('admin') }}</a>
                                </xf:if>
Otherwise as Brogan has suggested.
 
Back
Top Bottom