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 am using Umbraco v7.4.1. In that there is one new data type called
'Umbraco.MultipleTextstring' (Repeatable textstring). I have use it in document type and want to use it in template to display all textstrings. But I am not able to find syntax for it.
Please guide to how to use it. And if there is any guide, where all new data type and its description is there, give me reference of it.
There are examples here https://our.umbraco.org/documentation/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Multiple-Textbox
Hi dipa you can do something like below for getting the repeatable text.
Returns: array of strings
@foreach (var newitem in Model.Content.GetPropertyValue<string>("multiplestring"))
I have had a look at the above examples but I want to get the repeatable text string values from child pages?
I have tried multiple ways but not had any luck yet.
Can anyone please help?
Just get that child page by id or document type alias.
after that you can do like below.
@foreach (var newitem in node.GetPropertyValue<string>("multiplestring"))
if you are not using strongly typed view then you can do something like below.
if (CurrentPage.keyFeatureList.Length > 0)
@foreach (var item in CurrentPage.keyFeatureList)
where multiple string is alias of your property.
Hope this will help,
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted