Namespace Dynamicweb.Frontend
Classes
- Address
List View Model UserListViewModel represents the rendering context used when a list of user addresses is rendered.
- Address
View Model Represents a user address
- Area
Language View Model AreaLanguageViewModel represents the rendering context used when an area language is rendered.
- Area
View Model AreaViewModel represents the rendering context used when an area is rendered.
- Button
View Model The ButtonViewModel class is a specialized view model for handling CTA buttons. It extends from the ViewModelBase class.
- Cart
Orderline View Model CartOrderlineViewModel represents the rendering context used when a CartOrderline is rendered.
- Cart
View Model CartViewModel represents the rendering context used when a cart is rendered. It is available on the PageViewModel so you can render a minicart in frontend.
- Color
Scheme View Model ColorSchemeViewModel represents the rendering context used when a color scheme is rendered.
- Color
View Model ColorViewModel represents the rendering context used when a color is rendered.
- Container
Info Class ContainerInfo contains information about the content placeholder of current rendering paragraph.
- Content
Renders paragraphs for content containers of page and layout templates.
- Custom
Color View Model CustomColorViewModel represents the rendering context used when a custom color is rendered.
- File
View Model FileViewModel represents the rendering context used when a file is rendered.
- Font
View Model The font viewmodel represents a font and its data.
- Geolocation
View Model GeolocationViewModel represents the rendering context used when a geolocation is rendered.
- Get
Image Settings Represents the settings for GetImage.ashx link generation.
- Google
Font View Model GoogleFontViewModel represents the rendering context used when an item is rendered.
- Grid
Column View Model Represents a view model for a grid column
- Grid
Row View Model Represents a view model for a grid row in the frontend.
- Image
File View Model Extensions Provides extension methods for the Image
File class to create strings for background styles and GetImage URLs.View Model
- Item
Field View Model ItemFieldViewModel represents the rendering context used when an item field is rendered.
- Item
View Model ///
The Item View class provides a robust way to represent the rendering context for items within Razor templates in Dynamicweb. This class serves as the bridge between your data and the Razor templates, offering easy access to the fields, values, and other metadata associated with the item being rendered.Model With this view model, developers can efficiently interact with the item’s data, retrieving field values in various types (such as strings, booleans, dates, and more), and render them dynamically within the template. The Item
View offers a wide array of methods for accessing these fields, including type-specific getters (e.g., GetModel String(string) , GetBoolean(string) , GetDate ), as well as helper methods like TryTime(string) Get and TryGetImageFiles(string, out IEnumerable<ImageFileViewModel>), which facilitate safe and flexible data retrieval.Field(string, out Item Field View Model) This structure ensures that your Razor templates can be both powerful and clean, with minimal logic needed to handle data retrieval, allowing you to focus on presenting the content.
By leveraging the Item
View , you can create highly dynamic and reusable templates that respond to the specific data associated with each item, enhancing both the flexibility and maintainability of your web applications.Model
- Link
View Model The LinkViewModel class is a specialized view model for handling links. It extends from the ViewModelBase class.
- Meta
Represents the metadata of the page view. Access through PageView.Current.Meta.
- Output
Replacer Does various formatting of the output from pageview object
- Page
Info View Model Represents a page.
- Page
Language View Model PageLanguageViewModel represents the rendering context used when a page language is rendered.
- Page
Reference View Model PageReferenceViewModel represents the rendering context used when a page reference is rendered.
- Page
Template Extender Pageview template extender. Extends the rendering of a Page
View .
- Page
View The pageview object represents the current frontend pageview, the object that handles Default.aspx and all frontend page views.
- Page
View Context Object for pageview context sensitive information.
- Page
View Isolation PageViewIsolation isolates PageView.Current to the Page with the ID given in the Constructor. The PageView is isolated for as long as this object has not been disposed.
- Page
View Macro PageViewMacro implements macros used for getting Pageview specific context values for use in i.e. indexing.
- Page
View Model PageViewModel represents the rendering context used when a page is rendered. All properties are eager-loaded.
- Page
View Model Extensions Provides extension methods for the PageViewModel.
- Paragraph
Info View Model Represents a paragraph.
- Paragraph
View Model ParagraphViewModel represents the rendering context used when a paragraph is rendered.
- Renderer
Class Renderer that renders Areas, page and paragraphs. This class cannot be inherited.
- Search
Engine Friendly URLs Helper methods for handling search friendly urls.
- Typography
View Model TypographyViewModel represents the rendering context used when a typography is rendered.
- User
Group View Model UserViewModel represents the rendering context used when a user group is rendered.
- User
List View Model UserListViewModel represents the rendering context used when a list of users is rendered.
- User
Password Recovery Email View Model UserRecoverPasswordViewModel represents a password recovery request with token, url and the user object.
- User
View Model UserViewModel represents the rendering context used when a user is rendered.
- User
View Model. Geo Location Gets or sets an object that holds the location in the form of latitude and longitude of the user object
- Video
View Model The VideoViewModel class is a specialized view model for handling videos. It extends from the ViewModelBase class.
- Video
View Model Extensions Provides extension methods for the VideoViewModel class.
- Visitor
Session Cookie Represents a visitor's session cookie. This class cannot be inherited.
- Xml
Navigation Represents the navigation object used to generate the xml for navigations
Enums
- Experiment
Type ExperimentType specifies the type of split test experiment is executed on a given page
- Search
Engine Friendly URLs.Type Specifies the url pattern
- Xml
Navigation. Expand Defines which pages in the navigation tree to include in the generated xml node set.
- Xml
Navigation. Include Mode Defines the modes deciding if pages Include, ShowInLegend and ShowInSitemap are taken into consideration when including nodes in the XML
- Xml
Navigation. Navigation Type Defines what the generated xml should be used for.