Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
How can i exclude a section in nav page?
Hello TXPLovers:
I got this code:
<div class="collapse navbar-collapse" id="navbarCollapse">
<txp:section_list class="navbar-nav mr-auto" default_title='<txp:text item="home" />' include_default wraptag="ul" break="">
<li class="nav-item<txp:if_section name='<txp:section />' exclude="articles">active</txp:if_section>">
<a class="nav-link" href="<txp:section url />"><txp:section title /><txp:if_section name='<txp:section />'>
<span class="sr-only"><txp:text item="bootstrap_current" /></span></txp:if_section>
</a>
</li>
</txp:section_list>@
and i want to exclude the section article from my front-end navbar
https://jorgecocompech.rocks/
Acerca
Archivos
Anotaciones <—- this one—->
If i move it inside the back-end (section presentation>control), dissapears in the front end, but is linked to home (on the default page? option) and the post doesn’t appears.
Thanks for you help!
Offline
Re: How can i exclude a section in nav page?
Hi, you can try
<txp:section_list class="navbar-nav mr-auto" default_title='<txp:text item="home" />' include_default exclude="anotaciones" wraptag="ul" break="">
You may also want to check the tag’s other attributes.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: How can i exclude a section in nav page?
Thanks for your help!
Is working :D
colak wrote #321633:
Hi, you can try
<txp:section_list class="navbar-nav mr-auto" default_title='<txp:text item="home" />' include_default exclude="<-use the name of the section (in my case is 'article')->" wraptag="ul" break="">...
You may also want to check the tag’s other attributes.
Offline