Member Login

Freestyle Joomla Forums

Includes: Data

Member Login   Register

Please login or register to post on the forum

Forum Index    Board Index    Last Post   

Mark Aventino

Mark Aventino

03 May 2017, 10:54

Coma separated {items} except last item

Hello, i need to make JSON massive, for example:
{items1row},
{items2row},
{items3row},
{items4row}

All items data must be coma seaparated, except last one. If i make template with {items}, i have all rows with coma, if i place {items} without coma, i have no coma. How can I output coma seaparated {items} without last item?
Link showing problem champetre.marcoaventino.com
Joomla Version 3.7
Freestyle Version Last Stable
Pro/Lite Pro
Harry Shaw

Harry Shaw

04 May 2017, 14:32

Re: Coma separated {items} except last item

Hello,

You will need to test this for us to ensure it works but can you add:

{if not $smarty.foreach.items.last},{/if}

Thanks

Harry Shaw
Freestyle Joomla
Harry Shaw

Harry Shaw

04 May 2017, 14:37

Re: Coma separated {items} except last item

Hello,


We have just realised this will not work, we will have another solution for you shortly.

Thanks

Harry Shaw
Freestyle Joomla
Mark Aventino

Mark Aventino

06 May 2017, 05:29

Re: Audit Message

Thank you guys. I have one suggestion for you. I use you product to generate JSON for use with jQuery code in SVG floorplan choosing code, http://champetre.marcoaventino.com/lv/dzivoklu-izvele.html but in default {items} output goes with hidden divs with filtering code. For now I commented out this code fragment in your component and this way i get clean code,  but it will be cool if you make possible to switch on clean (raw) output for each dataset separetly, so one i can output with filtering, and anorther clean raw code, without any aditional tags

Vote For Us!

Please vote for our software or write a review of one of our products on the Joomla! Extensions Directory