XF 2.1 Public navigation icon? An unreleased idea or...

NikitOS

Well-known member
I found this in the public template PAGE_CONTAINER in the macro nav_link:
HTML:
<xf:if is="$nav.icon"><xf:fa icon="{$nav.icon}" /></xf:if>

Why is this here if there is no way to set an icon for the navigation tab in the navigation settings? 🤔
 
It was sort of scrapped way back in the development of 2.0, but as the navigation links are built from a generic system, there is some support in the template for things that aren't necessarily used out of the box. Notably, the line you quoted also has a "counter" concept.

Add-ons can take advantage of these additional systems if they like, though you can also add icons via CSS as is.
 
Hmm... But why is this scrapped? According to this logic, the icons in the ACP should also be scrapped :D
Able to set icons for public navigation out of the box without using CSS would be useful in my opinion.

Thanks anyway.
 
Top Bottom