versionFrom | versionRemoved |
---|---|
7.0.0 |
8.0.0 |
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.
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.