I will probably post this later in my blog later.

If you are doing JSON or an object array:

var myObjectArray = [<!IoRangeList>{"title": "<%hdl_title%>", "url": 
"<%lst_publications%>"},<!/IoRangeList>{}]

Notice the {} after <!/IoRangeList>?  It is there to ensure it always ends 
with an empty object rather than a comma, which is invalid syntax

If you are doing HTML like a breadcrumb or some pathing with seperators, 
and you don't want the last seperator, just use JQuery/JavaScript to remove 
the last occurrence.

<!IoRangeList><a href="<%lst_publications%>"><%hdl_title%></a><span 
class="seperator"> | </span><!/IoRangeList>
<script>
$('.seperator:last').remove();
</script>

On Friday, July 18, 2014 8:40:14 AM UTC-4, JJB wrote:
>
> What does your final code look like? I am facing a similar issue.
>
> Thanks,
> Jamie
>
> On Tuesday, March 26, 2013 8:03:39 PM UTC-3, [email protected] wrote:
>>
>> Hi, Jian.
>>  
>> Thanks for your help.
>>  
>> Simple but effective.
>>  
>> Regards,
>> EMB
>>
>> On Tuesday, March 26, 2013 9:42:01 PM UTC+11, Jian Huang wrote:
>>
>>>  Easiest way is to have {} at the end of the iorangelist, so your JSON 
>>> will always ends with an empty set
>>>
>>> Sent from my iPhone
>>>
>>> On Mar 26, 2013, at 12:33 AM, [email protected] wrote:
>>>
>>>  Sorry...noticed some minor errors after my initial submission
>>>
>>> <!IoRangeList>
>>>    <!IoRangeRedDotMode><!-- <%lst_publications%> --><!/IoRangeRedDotMode> 
>>>
>>>    {"title": "<a href='<%!! 
>>> Context:Pages.GetPage(Guid:<%inf_page_GUID%>).MainLink.OwnerPage.GetUrl(Bool:True)
>>>  
>>> !!%>' target='_parent'><%hdl_title%></a>",
>>>        "description": "<a href="<%!! Context:Pages.GetPage(Guid:<
>>> %inf_page_GUID%>).MainLink.OwnerPage.GetUrl(Bool:True) !!%>' 
>>> target='_parent'><%stf_relevant_quarter%></a>",
>>>        "image": "<%img_publication%>",}
>>>  <!/IoRangeList>
>>>
>>> Thanks again and regards,
>>> EMB
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "RedDot CMS Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at 
>>> http://groups.google.com/group/reddot-cms-users?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to