Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Every fourth article
I know about zem_nth plugin and I’ve read article on TxpTips, but I still haven’t found the way to wrapp let’s say 4 blocks of excerpts. What do I need is
<div class=“wrapper”>
<div class=“one”>aaaaaa</div>
<div class=“two”>bbbbbb</div>
<div class=“three”>cccccc</div>
<div class=“four”>dddddd</div>
<div>
<div class=“wrapper”>
<div class=“one”>aaaaaa</div>
<div class=“two”>bbbbbb</div>
<div class=“three”>cccccc</div>
<div class=“four”>dddddd</div>
<div>
…and so on.
Sorry, call me stupid, but if someone can at least point me to solution.
Last edited by pogonik (2010-02-12 11:52:59)
Offline
#2 2010-02-12 12:34:11
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Every fourth article
Something like this?
<txp:zem_nth step="1" of="4"><div class="wrapper"></txp:zem_nth>
<txp:zem_nth step="1" of="4"><div class="one"></txp:zem_nth>
<txp:zem_nth step="2" of="4"><div class="two"></txp:zem_nth>
<txp:zem_nth step="3" of="4"><div class="three"></txp:zem_nth>
<txp:zem_nth step="4" of="4"><div class="four"></txp:zem_nth>
your content
</div>
<txp:zem_nth step="4" of="4"></div></txp:zem_nth>
Offline
Re: Every fourth article
Never thought it that way :-)
Thanks man, you’re always really helpful.
Offline
Pages: 1