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've been using Umbraco now for a bit and now need to make a function that will look through all of the generic properties and display all of the values. This is being used for a search and replace within a rich text edtior.
Can anyone help with this?
Hi Chris,
By generic properties, do you mean Id, Name, CreateDate or your own properties?
For the latter you can do something like this:
@foreach (var prop in Model.Content.Properties) { <li>@prop.PropertyTypeAlias</li> }
Jeavon
For the former you can do something like this:
@foreach (var prop in Model.Content.GetType().GetProperties()) { <li>@prop.Name</li> }
Hi There, Thanks for this
I only need to get the Generic property.
http://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/document-types/properties/documentation
I need all of these. So i can look through and replace within rich text field.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get all Generic Properties
I've been using Umbraco now for a bit and now need to make a function that will look through all of the generic properties and display all of the values. This is being used for a search and replace within a rich text edtior.
Can anyone help with this?
Hi Chris,
By generic properties, do you mean Id, Name, CreateDate or your own properties?
For the latter you can do something like this:
Jeavon
For the former you can do something like this:
Hi There, Thanks for this
I only need to get the Generic property.
http://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/document-types/properties/documentation
I need all of these. So i can look through and replace within rich text field.
is working on a reply...