Table of Contents

Namespace Dynamicweb.Frontend

Classes

AddressViewModel

Represents a user address

AreaInfoViewModel
AreaLanguageViewModel

AreaLanguageViewModel represents the rendering context used when an area language is rendered.

AreaViewModel

AreaViewModel represents the rendering context used when an area is rendered.

ButtonViewModel

The ButtonViewModel class is a specialized view model for handling CTA buttonss. It extends from the ViewModelBase class.

CartOrderlineViewModel

CartOrderlineViewModel represents the rendering context used when a CartOrderline is rendered.

CartViewModel

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.

ColorSchemeViewModel

ColorSchemeViewModel represents the rendering context used when a color scheme is rendered.

ColorViewModel

ColorViewModel represents the rendering context used when a color is rendered.

ContainerInfo

Class ContainerInfo contains information about the content placeholder of current rendering paragraph.

Content

Renders paragraphs for content containers of page and layout templates.

ContentCollection
ContentOutputResult
ContentOutputResult<T>
CustomColorViewModel

CustomColorViewModel represents the rendering context used when a custom color is rendered.

CustomFieldValueViewModel
FileViewModel

FileViewModel represents the rendering context used when a file is rendered.

FontViewModel

The font viewmodel represents a font and its data.

GeolocationViewModel

GeolocationViewModel represents the rendering context used when a geolocation is rendered.

GetImageSettings

Represents the settings for GetImage.ashx link generation.

GoogleFontViewModel

GoogleFontViewModel represents the rendering context used when an item is rendered.

GridColumnViewModel
GridRowViewModel

Represents a view model for a grid row in the frontend.

GridViewModel
ImageFileViewModel
ImageFileViewModelExtensions

Provides extension methods for the ImageFileViewModel class.

ItemFieldViewModel

ItemFieldViewModel represents the rendering context used when an item field is rendered.

ItemViewModel

///

The ItemViewModel 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.

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 ItemViewModel offers a wide array of methods for accessing these fields, including type-specific getters (e.g., GetString(string), GetBoolean(string), GetDateTime(string)), as well as helper methods like TryGetField(string, out ItemFieldViewModel) and TryGetImageFiles(string, out IEnumerable<ImageFileViewModel>), which facilitate safe and flexible data retrieval.

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 ItemViewModel, 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.

LinkViewModel

The LinkViewModel class is a specialized view model for handling links. It extends from the ViewModelBase class.

ListOptionViewModel
ListViewModel
Meta

Represents the meta data of the pageview. Access through PageView.Current.Meta.

NoActionOutputResult
NotFoundOutputResult
OutputReplacer

Does various formatting of the output from pageview object

OutputResult
PageInfoViewModel

Represents a page.

PageLanguageViewModel

PageLanguageViewModel represents the rendering context used when a page language is rendered.

PageReferenceViewModel

PageReferenceViewModel represents the rendering context used when a page reference is rendered.

PageTemplateExtender

Pageview template extender. Extends the rendering of a PageView.

PageView

The pageview object represents the current frontend pageview, the object that handles Default.aspx and all frontend page views.

PageViewContext

Object for pageview context sensitive information.

PageViewIsolation

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.

PageViewMacro

PageViewMacro implements macros used for getting Pageview specific context values for use in i.e. indexing.

PageViewModel

PageViewModel represents the rendering context used when a page is rendered. All properties are eager-loaded.

ParagraphInfoViewModel

Represents a paragraph.

ParagraphViewModel

ParagraphViewModel represents the rendering context used when a paragraph is rendered.

PriceViewModel
PriceViewModel.CurrencyInfo
PriceViewModel.PriceInfo
PriceViewModel.VatInfo
RedirectOutputResult
Renderer

Class Renderer that renders Areas, page and paragraphs. This class cannot be inherited.

SearchEngineFriendlyURLs

Helper methods for handling search friendly urls.

StreamOutputResult
TypographyViewModel

TypographyViewModel represents the rendering context used when a typography is rendered.

UserPasswordRecoveryEmailViewModel

UserRecoverPasswordViewModel represents a password recovery request with token, url and the user object.

UserViewModel

UserViewModel represents the rendering context used when a user is rendered.

UserViewModel.GeoLocation

Gets or sets an object that holds the location in the form of latitude and longitude of the user object

VideoViewModel

The VideoViewModel class is a specialized view model for handling videos. It extends from the ViewModelBase class.

VisitorSessionCookie

Represents a visitor's session cookie. This class cannot be inherited.

XmlNavigation

Represents the navigation object used to generate the xml for navigations

Enums

ExperimentType

ExperimentType specifies the type of split test experiment is executed on a given page

SearchEngineFriendlyURLs.Type

Specifies the url pattern

XmlNavigation.Expand

Defines which pages in the navigation tree to include in the generated xml node set.

XmlNavigation.IncludeMode

Defines the modes deciding if pages Include, ShowInLegend and ShowInSitemap are taken into consideration when including nodes in the XML

XmlNavigation.NavigationType

Defines what the generated xml should be used for.

To top