Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2015-04-09 12:18:50

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 819
Website

Re: How to hide <hr> if there are no articles ... ?

Bloke … sorry. The <hr> in the article tag was a leftover from the first suggestion (Uli’s) … it’s gone now. And your last snippet is elegant too … :)

After some tweaking:

<txp:if_first_article>
<h3>Ingekomen berichten</h3>
</txp:if_first_article>

<div class="article important">
<h1 class="entry-title"><txp:title /></h1>
<txp:body />
</div>

<txp:if_last_article>
<hr>
</txp:if_last_article>

Last edited by RedFox (2015-04-09 12:30:46)

Offline

Board footer

Powered by FluxBB