Class PageInfoViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
Represents a view model for a page, providing access to metadata, content, and related configurations.
public class PageInfoViewModel : ViewModelBase
- Inheritance
-
PageInfoViewModel
- Inherited Members
- Extension Methods
Remarks
This view model is typically used to represent pages in a web application, providing essential details such as metadata (title, description, keywords), creation and update timestamps, and content structure.
Constructors
PageInfoViewModel()
Initializes a new instance of the PageInfoViewModel class.
public PageInfoViewModel()
Properties
AreaID
Gets or sets the identifier of the area to which the page belongs.
public int AreaID { get; set; }
Property Value
- int
An integer representing the area ID.
Clickable
Gets or sets a value indicating whether the node should be clickable (link).
public bool Clickable { get; set; }
Property Value
- bool
trueif it's clickable; otherwise,false.
ColorScheme
Gets or sets the color scheme for the page.
public ColorSchemeViewModel? ColorScheme { get; set; }
Property Value
- ColorSchemeViewModel
The color scheme as a ColorSchemeViewModel.
CreatedDate
Gets or sets the date and time when the page was created.
public DateTime CreatedDate { get; set; }
Property Value
Description
Gets or sets the description of the page.
public string? Description { get; set; }
Property Value
- string
A string containing the page description, typically used for SEO purposes.
ID
Gets or sets the unique identifier for the page.
public int ID { get; set; }
Property Value
- int
An integer representing the page ID.
Image
Gets or sets the Image of the page - used for e.g. open graph.
public string? Image { get; set; }
Property Value
- string
A string representing path to the image.
Item
Gets or sets the item associated with the page.
public ItemViewModel? Item { get; set; }
Property Value
- ItemViewModel
An ItemViewModel representing the content or configuration item for the page.
Keywords
Gets or sets the keywords associated with the page.
public string? Keywords { get; set; }
Property Value
- string
A string containing keywords for the page, often used in metadata for search engines.
Languages
Gets or sets the available languages for the page.
public IList<PageLanguageViewModel> Languages { get; set; }
Property Value
- IList<PageLanguageViewModel>
A list of PageLanguageViewModel objects representing the page's language variations.
Name
Gets or sets the name of the page.
public string? Name { get; set; }
Property Value
- string
A string representing the name of the page.
Path
Gets or sets the path of the page as a list of page references.
public IList<PageReferenceViewModel> Path { get; set; }
Property Value
- IList<PageReferenceViewModel>
A list of PageReferenceViewModel objects representing the page's hierarchical path.
PropertyItem
Gets or sets the property item associated with the page.
public ItemViewModel? PropertyItem { get; set; }
Property Value
- ItemViewModel
An ItemViewModel representing property-specific configuration or content for the page.
ShowInMenu
Gets a value indicating weather the node should be shown in menu.
public bool ShowInMenu { get; set; }
Property Value
- bool
Returns true if the node should be shown in menu
Sort
Gets or sets the sort order of the page.
public int Sort { get; set; }
Property Value
- int
An integer representing the sort order for displaying pages.
Title
Gets or sets the title of the page.
public string? Title { get; set; }
Property Value
- string
A string representing the page title.
UpdatedDate
Gets or sets the date and time when the page was last updated.
public DateTime UpdatedDate { get; set; }