XF 2.2 New tab in Menu

nicodak

Well-known member
Hello,

I created a new tab in Menu and i would like to know how to open the page linked in overlay instead a classic page ?

Thanks ! :)
 
Solution
Use it like this:
Less:
[data-template="forum_list"] .p-nav-list>li:last-child {
    float: right;
}

This will float the last-child only on forum_list.

nicodak

Well-known member
as I move forward the problems arise...

I set this menu tab to be displayed at the right of the menu bar. this is what i wrote in extra.less.
Less:
/* to get the menu bar takes the entire width of the site */
.p-nav-list {
    width: 990px;
}

/* to get my new tab at the extrem right of the menu bar */
.p-nav-list>li:last-child {
    float: right;
}
It works fine like that

Capture d’écran 2020-11-05 175143.png

Nouveau Sujet is the new tab.
But when this new tab is not displayed (because user is not registered or the page is not forum_list) the Membres tab go to the extrem right because it becomes the last-child of Menu ( .p-nav-list>li:last-child {float: right;}. )

How can i manage this behaviour i don't want ?

Thanks.
 

BassMan

Well-known member
Use it like this:
Less:
[data-template="forum_list"] .p-nav-list>li:last-child {
    float: right;
}

This will float the last-child only on forum_list.
 
Solution
Top