Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
aam_split_custom_field help
I’m trying to take two custom fields that contain multiple values and have them display in a table that should output like this:
<table>
<tr>
<td>Field1</td>
<td>Field2</td>
</tr>
<tr>
<td>Field1</td>
<td>Field2</td>
</tr>
</table>
but I can only get it to output this:
<table>
<tr>
<td>Field1</td>
<td>Field1</td>
</tr>
<tr>
<td>Field2</td>
<td>Field2</td>
</tr>
</table>
the code i’m using looks like this:
<table>
<txp:aam_split_custom_field name=“citydelimiter=” wraptag=“tr” break=“td” />
<txp:aam_split_custom_field name=“datedelimiter=” wraptag=“tr” break=“td” />
</table>
is there a way to get it to output the way i want it to?
Offline
Re: aam_split_custom_field help
I’m not familiar with the plugin, but maybe you should try this:
<table>
<tr>
<txp:aam_split_custom_field name=“city” delimiter=”:” wraptag=“” break=“td” />
<txp:aam_split_custom_field name=“date” delimiter=”:” wraptag=“” break=“td” />
</tr>
</table>
…Prrrrrrrr…
Offline
Re: aam_split_custom_field help
i’ve tried that before as well. what i get is:
<table>
<tr>
<td>Field1</td>
<td>Field2</td>
<td>Field1</td>
<td>Field2</td>
</tr>
</table>
it skips inserting the <tr> when moving on to the next set.
Offline
Pages: 1