Class PageViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
PageViewModel represents the rendering context used when a page is rendered.
public class PageViewModel : ViewModelBase
- Inheritance
-
PageViewModel
- Inherited Members
Properties
Area
Gets or sets the area.
public AreaViewModel Area { get; set; }
Property Value
- AreaViewModel
- The area.
- See Also
Cart
Gets or sets the current cart.
public CartViewModel Cart { get; set; }
Property Value
- CartViewModel
- The current cart.
- See Also
Content
Gets or sets the content as a dictionary of content placeholder ids (key) and its content html (the value).
public IDictionary<string, string> Content { get; set; }
Property Value
- IDictionary<string, string>
- The content as a IDictionary(Of String, String) where key is the placeholder id and value is the markup of the content placeholder.
- See Also
CreatedDate
Gets or sets the created date.
public DateTime CreatedDate { get; set; }
Property Value
- DateTime
- The created date.
- See Also
CurrentSecondaryUser
Gets or sets the current secondary user.
public UserViewModel CurrentSecondaryUser { get; set; }
Property Value
- UserViewModel
- The current secondary user.
- See Also
CurrentUser
Gets or sets the current user.
public UserViewModel CurrentUser { get; set; }
Property Value
- UserViewModel
- The current user.
- See Also
Description
Gets or sets the description.
public string Description { get; set; }
Property Value
- string
- The description.
- See Also
GridContent
public IDictionary<string, string> GridContent { get; }
Property Value
- See Also
HasSecondaryUsers
Demonstrates that current user has secondary users
public bool HasSecondaryUsers { get; }
Property Value
- See Also
ID
Gets or sets the identifier.
public int ID { get; set; }
Property Value
- int
- The identifier.
- See Also
IsCurrentUserAllowed
Gets a boolean that indicates if the current user, anonymous or not, has access to the current page. GetLogonDialog()
public bool IsCurrentUserAllowed { get; }
Property Value
- bool
- true if the user has access
- See Also
Item
Gets or sets the item.
public ItemViewModel Item { get; set; }
Property Value
- ItemViewModel
- The item.
- See Also
ItemId
Gets or sets the item identifier.
public string ItemId { get; set; }
Property Value
- string
- The item identifier.
- See Also
ItemType
Gets or sets the type of the item.
public string ItemType { get; set; }
Property Value
- string
- The type of the item.
- See Also
Keywords
Gets or sets the keywords.
public string Keywords { get; set; }
Property Value
- string
- The keywords.
- See Also
Languages
Gets or sets the languages.
public IList<PageLanguageViewModel> Languages { get; set; }
Property Value
- IList<PageLanguageViewModel>
- The languages.
- See Also
LogOnFailed
Gets or sets log on failed state.
public bool LogOnFailed { get; set; }
Property Value
- See Also
LogOnFailedReason
Gets or sets log on failed reason.
public LogOnFailedReason LogOnFailedReason { get; set; }
Property Value
- See Also
MetaTags
Gets or sets the meta tags.
public string MetaTags { get; }
Property Value
- string
- The meta tags markup including canonical.
- See Also
Name
Gets or sets the name.
public string Name { get; set; }
Property Value
- string
- The name.
- See Also
Path
Gets or sets the path.
public IList<PageReferenceViewModel> Path { get; set; }
Property Value
- IList<PageReferenceViewModel>
- The path.
- See Also
PropertyItem
Gets or sets the property item.
public ItemViewModel PropertyItem { get; set; }
Property Value
- ItemViewModel
- The property item.
- See Also
PropertyItemId
Gets or sets the property item identifier.
public string PropertyItemId { get; set; }
Property Value
- string
- The property item identifier.
- See Also
PropertyItemType
Gets or sets the type of the property item.
public string PropertyItemType { get; set; }
Property Value
- string
- The type of the property item.
- See Also
SecondaryUsers
Gets or sets the secondary users.
public IList<UserViewModel> SecondaryUsers { get; set; }
Property Value
- IList<UserViewModel>
- The secondary users.
- See Also
ShowUpdatedDate
Gets or sets a value indicating whether to show updated date.
public bool ShowUpdatedDate { get; set; }
Property Value
- bool
true
if [show updated date]; otherwise,false
.
- See Also
Title
Gets or sets the title.
public string Title { get; set; }
Property Value
- string
- The title.
- See Also
TopPage
Gets or sets the top page.
public PageReferenceViewModel TopPage { get; set; }
Property Value
- PageReferenceViewModel
- The top page.
- See Also
UpdatedDate
Gets or sets the updated date.
public DateTime UpdatedDate { get; set; }
Property Value
- DateTime
- The updated date.
- See Also
Methods
GetCookieWarningContent()
Gets the content of the cookie warning.
public string GetCookieWarningContent()
Returns
- string
- System.String.
- See Also
GetLogonDialog()
Gets the content of the logon dialog that may needs to be rendered on pages where the user does not have access. IsCurrentUserAllowed
public string GetLogonDialog()
Returns
- string
- A string containing html of the template used for the page logon or password dialog
- See Also
Grid(string, string, string, string)
public string Grid(string placeholderId, string name, string settings, string gridTypeId)
Parameters
Returns
- See Also
Placeholder(string)
Placeholder for a content placed in a layout container.
public string Placeholder(string id)
Parameters
id
string- The id of the container.
Returns
- string
- System.String.
- See Also
Placeholder(string, string)
Placeholder for a content placed in a layout container.
public string Placeholder(string id, string title)
Parameters
Returns
- string
- System.String.
- See Also
Placeholder(string, string, string)
Placeholder for a content placed in a layout container.
public string Placeholder(string id, string title, string settings)
Parameters
id
string- The id of the container.
title
string- The title of the container.
settings
string- The settings for the container specified as a string of values separated by semicolon, e.g. "default:true;sort:1"
Returns
- string
- System.String.
- See Also