Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.28 KB

File metadata and controls

32 lines (25 loc) · 1.28 KB
versionFrom versionRemoved
7.0.0
8.0.0

DynamicPublishedContent

DynamicPublishedContent is the dynamic version of IPublishedContent, it allows for simpler access to property data but it does not provide intellisense. All methods and properties that are available on IPublishedContent are also available on DynamicPublishedContent. However, there are a few special methods specifically designed for DynamicPublishedContent that are used for filtering, querying and collections.

Get started

To access the current page in your macros or templates, copy-paste the below Razor code.

@{
    var pageName = CurrentPage.Name;
    var childPages = CurrentPage.Children;
}

<h1>@pageName</h1>

Listing and explanation of DynamicPublishedContent properties & standard helpers for Content and Media.

Methods for DynamicPublishedContent collections and filtering.

A library of extension methods to simplify working with DynamicPublishedContents in collections to modify your HTML output. Examples could be injecting CSS classes for alternating rows or to modify margins.