XF 2.0 Keep Whats New menu tab selected

ibaker

Well-known member
#1
When selecting the various ares with the Whats New section the main menu tabs jump between the different section specific to the Whats New area you are looking at. For example when in Whats New and you select New Media, the Media menu tab is shown selected, new forum posts and the Forum menu tab is shown selected.

Instead of it jumping around when in the Whats New section, what do I need to edit to keep the Whats New menu tab shown as being selected...thanks for your help
 

Chris D

XenForo developer
Staff member
#2
In XF1 the section context of a page could only be edited by making changes to PHP code.

In XF2 you can change it in the template:
HTML:
<xf:page option="section" value="whatsNew" />
For example, adding that to whats_new_posts will ensure the "whatsNew" public navigation entry is selected when the New posts page is being viewed.
 

ibaker

Well-known member
#3
As always thanks Chris for your help...it just seemed to me better to keep all the Whats New together instead of flicking the menu all around the place which on feedback only confuses the users
 

Chris D

XenForo developer
Staff member
#4
Worth noting that the equivalent pages in XF1 did the same thing.

New posts highlighted Forums, New profile posts highlighted Members, New resources highlighted Resources etc.

But at least it's easier to change this time, it was pretty much hard coded in XF1.
 

ibaker

Well-known member
#5
Yes I know about trying to change it in v1.x however I had overcome that with my side column menu system that everyone liked as it also didn't jump around however to recreate that menu system again as it is far harder to understand the XFv2 template coding
1.jpg

Thanks again for your help
 
Top