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/ipublishedcontent/ could be the link to the new documentation for Umbraco 9 and newer versions.

    IPublishedContent

    IPublishedContent is a strongly typed model for content, media and members and is used to render content in your views for your website.

    Get started

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

    @{
        var pageName = Model.Name;
        var childPages = Model.Children;
    }
    
    <h1>@pageName</h1>
    

    Properties

    Listing and explanation of IPublishedContent properties and standard helpers for Content and Media.

    Collections & Filtering

    Methods for IPublishedContent collections and filtering.

    IsHelpers

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

    Extension Methods

    Extension methods available for IPublishedContent.