Hi, everyone.
I'm hoping one or some of you can shed some light on this problem.
The problem:
I have a list (lst_publications) that has a keyword association that list
all instances of a content class, Snapshot (not a foundation page). On the
template, I want to generate the following JavaScript string using Snapshot
elements inherited into lst_publications:
{"title": "<a href='xxx.html' target='_parent'>Xxx</a>", "description": "<a
href='xxx.html' target='_parent'>Xxx 2011</a>","image": "images/xxx.jpg",}*,
*
{"title": "<a href='yyy.html' target='_parent'>Yyy</a>", "description": "<a
href='yyy.html' target='_parent'>Yyy 2012</a>", "image": "images/yyy.jpg",}*
,*
{"title": "<a href='zzz.html' target='_parent'>Zzz</a>", "description": "<a
href='zzz.html' target='_parent'>Zzz 2013</a>", "image": "images/zzz.jpg",}
Please notice no trailing comma on last line.
What I currently have is:
<!IoRangeList>
<!IoRangeRedDotMode><!-- <%lst_publications%> --><!/IoRangeRedDotMode>
{"title": "<a href='<a href="<%!! Context:Pages.GetPage(Guid:<
%inf_page_GUID%>).MainLink.OwnerPage.GetUrl(Bool:True) !!%>">'
target='_parent'><%hdl_title%></a>",
"description": "<a href='<a href="<%!! Context:Pages.GetPage(Guid:<
%inf_page_GUID%>).MainLink.OwnerPage.GetUrl(Bool:True) !!%>">'
target='_parent'><%stf_relevant_quarter%></a>",
"image": "<%img_publication%>",}
<!/IoRangeList>
This gives me everything I need but the commas.
I did some searching and found something close which uses <foreach> but it
seems like this doesn't recognize the keyword association for the
lst_publications.
Is it possible to generate the comma seperation using either method that
works or do I have to use some preExecute scripting with the IoRangeRList?
Thanks 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.