Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Attacking the article_listing form ... :o
A nav made of article titles at the bottom of an individual article page with an article_listing form:
<li class="article" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<h4 itemprop="headline">
<a href="<txp:permlink />" itemprop="url mainEntityOfPage" title="<txp:text item="read_more" />">
<txp:title />
</a>
</h4>
</li>
And on the page (Artikelen):
<txp:article_custom section="artikelen" limit="99" form="article_listing" sort="position asc" wraptag="ol" />
What to do to give – in this case – the article title “De stichting” (li) a class “active” so that I can undo the style of a link (underline)?
Offline
Re: Attacking the article_listing form ... :o
cool! I also like the retro colours!
…. texted postive
Offline
Re: Attacking the article_listing form ... :o
Have you tried something like
<li class="<txp:if_article_id>active </txp:if_article_id>article" ...>
Offline
Re: Attacking the article_listing form ... :o
etc wrote #334945:
Have you tried something like
<li class="<txp:if_article_id>active </txp:if_article_id>article" ...>...
Bingooooooo … :)
Offline
Re: Attacking the article_listing form ... :o
Offline