Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-02-12 07:57:31

kuro
Member
From: Mexico City | Mérida, Yucatán
Registered: 2005-08-26
Posts: 66
Website

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

#2 2020-02-12 09:05:59

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,649
Website

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.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github
I do my best editing after I click on the submit button.

Offline

#3 2020-02-12 16:20:07

kuro
Member
From: Mexico City | Mérida, Yucatán
Registered: 2005-08-26
Posts: 66
Website

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

Board footer

Powered by FluxBB