Pill box list

3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 21, 2018   (RSS)

By KennyH - June 20, 2018

I have been trying hard to figure out how to get the closing </li> inserted when using pill boxes

I have

<li><?php echo join('<li> ', $record['features:labels']); ?></li>

but that just gives me

<li>item1

<li>item2

<li>item3</li>

I have tried many different variation but always get an error. Any words of wisdom?

Kenny

By leo - June 21, 2018

Hi Kenney,

Can you try changing join('<li> ', $record['features:labels']); to join('</li><li>', $record['features:labels']); And let me know if that is what you want?

Thanks,

Leo - PHP Programmer (in training)
interactivetools.com