Implemented Populate admin index page links with the admin navigation

Jake B.

Well-known member
Since these match the default navigation links it may be useful to pull these in from the top level admin navigation links so anything that gets added here is in the same order and uses the same icon


Screen Shot 2018-04-11 at 9.54.37 AM.webp
 
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
It already does do that for me, every top-level entry has a block like that.

I have not tested top-level entries without icons, maybe that's relevant?
 
Here's what I use...

PHP...
Code:
public function actionMain()
{
   $this->setSectionContext('snog_paypal');
   return $this->view('Snog:PayPal', 'snog_paypal_main');
}

Template...
Code:
<xf:title>{{ phrase('admin_navigation.snog_paypal') }}</xf:title>

<xf:macro template="section_nav_macros" name="section_nav" arg-section="snog_paypal" />
 
I took a look at the Reactions menu item.

You don't have the icon on the main page because you don't have a link defined for the main Reactions selection.

You have to have a link that produces a list of links to your sub-menu items.

Ah okay, I think that's where the difference between my install (in that screenshot) and his was, I had just recently added this link in, didn't even think of that :P
 
Back
Top Bottom