Take the community feedback survey now.
Take the community feedback survey now.
Hi,
Not sure what you mean but to add data with episerver you need a Page Model. something like this
[ContentType(DisplayName = "DefaultPage", GUID = "9dd28d67-02f1-4849-9cbc-726fb931ef81", Description = "")]
public class DefaultPage : PageData
{
[CultureSpecific]
[Display(
Name = "Main body",
Description = "The main body will be shown in the main content area of the page, using the XHTML-editor you can insert for example text, images and tables.",
GroupName = SystemTabNames.Content,
Order = 1)]
public virtual XhtmlString MainBody { get; set; }
}
With this model it is possible to add a DefaultPage in episerver. This page has one field "Mainbody".
If you need another field just add it to the model like this
[ContentType(DisplayName = "DefaultPage", GUID = "9dd28d67-02f1-4849-9cbc-726fb931ef81", Description = "")]
public class DefaultPage : PageData
{
[CultureSpecific]
[Display(
Name = "Main body",
Description = "The main body will be shown in the main content area of the page, using the XHTML-editor you can insert for example text, images and tables.",
GroupName = SystemTabNames.Content,
Order = 1)]
public virtual XhtmlString MainBody { get; set; }
[CultureSpecific]
[Display(Name = "Heading", Description = "", GroupName = SystemTabNames.Content, Order = 2)]
public virtual string Heading { get; set; }
}
In editmode /EPiServer/Cms/ click add (read the manual how to add pages)
If you are new to episerver you should read this
http://world.episerver.com/documentation/developer-guides/CMS/getting-started/
Hey,
Essentially, it depends on what kind of data you are trying to store.
The options are:
First and second are explained well in the documentation, the third is not related to Episerver...
Writing a usecase on what you need to store would help us give you a better answer.
BR,
Marija