Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-01-20 11:43:23
- brain
- Member
- Registered: 2005-06-28
- Posts: 15
Ouput articles contained in <div class="articlename">
hi
i need to output 4 articles (see the page http://www.photographicapress.net/pgp/lavori) each one contained in a <code><div class=“articlename or something”></code> cause i need to use image replacement for the titles, my template read:
<code><div id=“servizi”>
<txp:article limit=“4” form=“servizi” />
</div></code>
and the form servizi:
<code><div class=“servizio”>
<h3><txp:title /></h3>
<txp:body />
</div></code>
how can i modify it or add a plug in to get what i need?
preferably not using something like <code><div class=“photography”><txp:article id=“photography article id” /></div></code>, cause i’d prefer a more automatized way of dealing with the section’s articles, nor i can use
<code><div class=”<txp:article_id />”>
<h3><txp:title /></h3>
<txp:body />
</div></code>
in the form, cause css classes can’t begin with a number
thanks in advance
Last edited by brain (2006-01-20 11:45:49)
Offline
Re: Ouput articles contained in <div class="articlename">
You could use <txp:permlink />
. Or add text before your id, like class="article-<txp:article_id />"
.
Last edited by Jeremie (2006-01-20 11:51:35)
Offline
#3 2006-01-20 12:26:00
- brain
- Member
- Registered: 2005-06-28
- Posts: 15
Re: Ouput articles contained in <div class="articlename">
thanks jeremie
a really simple solution :)
Offline