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,
I have an already created site that I want to add content to but its not working as I expected.
I have done the following:
I then added some sample text using the text editor.
Nothing appears??? I can see the master layout but the text I entered in the Rich Text Editor is not there.
I presume it has something to do with the Template code as it just has the Layout = "Master.cshtml"; code within it.
Layout = "Master.cshtml";
As I added a text editor and have added text shouldnt this show up? Any help you can offer is greatly appreciated.
Have you rendered the property in the template at all?
E.G. Html.Raw(Model.Content.GetPropertyValue<string>("bodyText"))
Html.Raw(Model.Content.GetPropertyValue<string>("bodyText"))
No I havent as I thought it would pick it up automatically. I will have a go.
Nope. One of the many beauties of Umbraco is you can render things anywhere you like (as many times as you like if needed!) It doesn't place anything on the site without you telling it to render there.
Let me know if it works for you :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Entered text not showing on page
Hi,
I have an already created site that I want to add content to but its not working as I expected.
I have done the following:
I then added some sample text using the text editor.
Nothing appears??? I can see the master layout but the text I entered in the Rich Text Editor is not there.
I presume it has something to do with the Template code as it just has the
Layout = "Master.cshtml";
code within it.As I added a text editor and have added text shouldnt this show up? Any help you can offer is greatly appreciated.
Have you rendered the property in the template at all?
E.G.
Html.Raw(Model.Content.GetPropertyValue<string>("bodyText"))
No I havent as I thought it would pick it up automatically. I will have a go.
Nope. One of the many beauties of Umbraco is you can render things anywhere you like (as many times as you like if needed!) It doesn't place anything on the site without you telling it to render there.
Let me know if it works for you :)
is working on a reply...