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
Hi thanks for this amazing backoffice-extension.
if the property editor is textbox , i can get the value like this : item.GetValue<string>("postTitle")
item.GetValue<string>("postTitle")
but if it is a RTE , could some one please tell me how to get the value?
Thanks,
A
I don't know if this is what you are looking for, but this is how I'm getting the raw HTML values out of an RTE:
if (item.HasValue("override")){@Html.Raw(item.GetProperty("override").ToString())}
Hi Shawn , thx for the advise.
I am using this item.GetValue<dynamic>("itemName") to get it now .
item.GetValue<dynamic>("itemName")
Thanks all the same,
Best,
I used Shawn's example but just changed one thing on it and it worked for me.
@if (Model.HasValue("override")){@Html.Raw(Model.Value("override").ToString())}
Hopefully this might help others.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
how to get RTE value in Razor view ?
Hi thanks for this amazing backoffice-extension.
if the property editor is textbox , i can get the value like this :
item.GetValue<string>("postTitle")
but if it is a RTE , could some one please tell me how to get the value?
Thanks,
A
I don't know if this is what you are looking for, but this is how I'm getting the raw HTML values out of an RTE:
Hi Shawn , thx for the advise.
I am using this
item.GetValue<dynamic>("itemName")
to get it now .Thanks all the same,
Best,
A
I used Shawn's example but just changed one thing on it and it worked for me.
Hopefully this might help others.
is working on a reply...