I have created document type (HomePage) and template and using that template i have created content page(TestPage).
In document type page (HomePage) i have inserted richtextbox.
Now in content page(TestPage), i can add text in richtextbox.
But when i run the content page(TestPage) no text is showing from content page(TestPage).
Is there any code to visible the content of richtextbox from content page(Test_Page)?
What is the use of keyword rte? Is there any link with this rte?
Please see my post above this, i have mentioned everything.
Its not showing text 'This is content page'.
In which page should i use this '@Model.Content.Value("rteAlias")'.
Content page data is not showing
I have created document type (HomePage) and template and using that template i have created content page(TestPage). In document type page (HomePage) i have inserted richtextbox. Now in content page(TestPage), i can add text in richtextbox. But when i run the content page(TestPage) no text is showing from content page(TestPage). Is there any code to visible the content of richtextbox from content page(Test_Page)? What is the use of keyword rte? Is there any link with this rte?
Thanks in advance.
Hi Vanaja,
Please can you share the code of template.
If you try this code then it should work fine. @Model.Content.Value("rteAlias")
//rteAlias - This is obviously your RTE alias.
Cheers,
Shaishav
MasterPage code :-
Form created using MasterPage :- Image:
Code
@using ContentModels = Umbraco.Web.PublishedModels; @inherits Umbraco.Web.Mvc.UmbracoViewPage
Sample Page
ContentPage Image : -
When i run the content page it shows like. Its not showing the text which i have written in richtexteditor.
Many thanks Shaishav for your reply,
Please see my post above this, i have mentioned everything.
Its not showing text 'This is content page'. In which page should i use this '@Model.Content.Value("rteAlias")'.
Thanks.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.