We have moved!

You are currently looking at documentation for Umbraco 8 and older versions.
An automated guess is that docs.umbraco.com/umbraco-cms/reference/querying/dynamicpublishedcontent/ could be the link to the new documentation for Umbraco 9 and newer versions.

    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>
    

    Properties

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

    Collections & Filtering

    Methods for DynamicPublishedContent collections and filtering.

    IsHelpers

    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.