Class Frontend
- Namespace
- Dynamicweb.Frontend.Item
Publisher
- Assembly
- Dynamicweb.dll
Represents a frontend of the ItemPublisher module.
- Inheritance
-
Frontend
- Implements
- Inherited Members
Properties
ItemFields
Gets or sets the fields of target item type.
Property Value
ItemIdFromQuery
Gets the item Id specified via query string.
Property Value
ItemType
Gets or sets the target item type.
Property Value
ItemTypeFromQuery
Gets the item type specified via query string.
Property Value
Mode
Gets the module view mode.
Property Value
Query
Gets or sets the query that defines items what will be selected.
Property Value
Methods
CreateRenderer()
Creates new renderer.
Returns
- Renderer
Renderer.
GetContentBySettings(string)
Retrieves module content from specified settings.
Parameters
settings
stringA string with item publisher module settings.
Returns
- Output
Result Module content.
Remarks
The method is used to render an item directly in a template without the use of a page or paragraph. There are some template tags related to it: Item.Render, Item.RenderList and razor version - @RenderItemList.
GetItemFields()
Returns the initial list of item fields to operate with.
Returns
- IEnumerable<string>
The list of item fields.
GetItemType(bool)
Returns target item metadata.
Parameters
isOriginal
boolIs it original item type needed or copy with selected field only.
Returns
- Item
Type Target item metadata.
GetItems()
Returns a list of items that needs to be rendered.
Returns
- IEnumerable<Item
Entry > A list of items that needs to be rendered.
GetModuleContent()
Gets the content of ItemPublisher module.
Returns
- Output
Result String representation of content
GetQuery()
Returns the query parsed from the current paragraph settings (and request).
Returns
- Query
Parsed query.
InitializeModule(Paragraph, PageView)
Initializes the module.