Hi, everyone.
 
I'm not very experienced in using the <foreach> but I've been able to get 
it to partially work for my needs. There is one minor remaining thing that 
I'm sure can be done cleaner but I'm not sure how to go about it. 
 
 Basically, I trying to output the contents of a list Element as 
an unordered list items containing sequential links 
 i.e.:
 
<li><a class="" title="" href="">1</a></li>
 <li><a class="" title="" href="">2</a></li>
etc.
 
Here is what I have:
 
<reddot:cms> 
    <foreach itemname="item" 
object="Context:CurrentPage.GetElementByName(lst_feature).Value" 
countername="counter"> 
        <htmltext> 
                <li><a class="" title="<%!! Store:item.Headline !!%>" 
href="javascript:;"><script>document.write(<%!! Store:counter !!%> + 
1);</script></a></li>
        </htmltext> 
    </foreach> 
</reddot:cms> 
 
 I don't like using the JavaScript there. Just seems really clunky. I'm 
sure there is a cleaner way to do this. 
 
Any wisdom is much appreciated.
 
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.


Reply via email to