Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
getting this txp code in this table?
Sorry i know this is my second post of the day but im so close to getting my site up and running.
Im having a little problem with getting some txp code to display within a table ive created. Its for my recent articles ( there is a good reason for using a table!)
Before i was using this:
<code><txp:recent_articles limit=“8” break=“li” wraptag=“ul” /></code>
which worked fine but i need alot more control over it so i created a table using this markup:
<code><tr>
<td><a href=“http://www.mattbrett.com” title=“View post The Return of the Black”>The Return of the Black</a></td>
</tr></code>
now ive tried this:
<code><txp:recent_articles limit=“8” break=“td” wraptag=“tr” /></code>
but this only produces one tr around the whole thing and not around each individual td.
ie:
<code>
<tr>
<td><a href….></a></td>
<td>….</td>
<td>….</td>
</tr>
but i need it as my code shows above.
Could anyone suggest how i could get this working the way i need it to?
thanks
Offline
#2 2006-07-24 22:27:20
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: getting this txp code in this table?
The break tag only wraps for list items.
You’ll need to do something like:
<table>
<txp:article_custom limit="8" form="table" />
</table>
table
<tr>
<td><txp:permlink><txp:title /></txp:permlink></td>
</tr>
:)
Offline
Offline
Pages: 1