Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-08-23 04:29:46

NicChen00
Member
From: Edmonton
Registered: 2011-08-05
Posts: 15
Website

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

#2 2011-08-23 06:21:46

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

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

#3 2011-08-23 07:23:42

NicChen00
Member
From: Edmonton
Registered: 2011-08-05
Posts: 15
Website

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

Board footer

Powered by FluxBB