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
how to use repeatable text string in loop.
@foreach(ContentModels.CareersFeed career in Model.Content.Children) { { if (Model.Content.GetPropertyValue<string[]>("CareersSkills").Length > 0) { <ul> @foreach (var item in Model.Content.GetPropertyValue<string[]>("CareersSkills")) { <li>@item</li> } </ul> } }
help please.. Thank you..
if i use this way then i got an error.
@foreach(ContentModels.CareersFeed career in Model.Content.Children) { <ul class="s_list"> <li><a href="#"><i class="fa fa-check" aria-hidden="true"></i>@career.CareersSkills</a></li> </ul> }
Error :
System.String[]
Hi Naufil
What if you use this code:
@foreach (var item in career.CareersSkills) { <li>@item</li> }
Wow, it's so simple. Thank you so much Alex.
You are welcome, have a nice day!
Same 2 u :)
Hey there Naufil,
What 'version' of Umbraco 7 are you using?
Hi Pedro, i'm using umbraco 7.11.1
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
repeatable text string doesn't work in loop
how to use repeatable text string in loop.
help please.. Thank you..
if i use this way then i got an error.
Error :
Hi Naufil
What if you use this code:
Wow, it's so simple. Thank you so much Alex.
You are welcome, have a nice day!
Same 2 u :)
Hey there Naufil,
What 'version' of Umbraco 7 are you using?
Hi Pedro, i'm using umbraco 7.11.1
is working on a reply...