Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a checkbox datatype set up that has prevalues for ek, k, 1, and 2.
In my template, this is the razor:
<div class="[email protected]"></div>
Which outputs this (as expected):
<div class="ico-k,1,2"></div>
I am trying to achieve this though:
<div class="ico-k ico-1 ico-2"></div>
Any ideas?
Hi Kurt
I think you need to split the value you're fetching and then loop through each value to add the ico- prefix.
Perhaps you can find some inspiration on how to do it in here http://stackoverflow.com/questions/6396866/i-have-split-a-string-into-individual-letters-using-razor-c-syntax-in-webmatr
Hope this helps.
/Jan
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Loop values from a checkbox into markup
I have a checkbox datatype set up that has prevalues for ek, k, 1, and 2.
In my template, this is the razor:
Which outputs this (as expected):
I am trying to achieve this though:
Any ideas?
Hi Kurt
I think you need to split the value you're fetching and then loop through each value to add the ico- prefix.
Perhaps you can find some inspiration on how to do it in here http://stackoverflow.com/questions/6396866/i-have-split-a-string-into-individual-letters-using-razor-c-syntax-in-webmatr
Hope this helps.
/Jan
is working on a reply...