Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Corné Strijkert 80 posts 456 karma points c-trib
    Apr 08, 2019 @ 19:16
    Corné Strijkert
    0

    Different ways to get IPublishedContent with UmbracoHelper object

    Hi,

    What's the difference between the following ways to get IPublishedContent with the UmbracoHelper object?

    @Umbraco.PublishedContent()
    @Umbraco.Content()
    @Umbraco.ContentQuery.Content()
    

    What's the use of the ContentQuery object? When to use which? The ContentQuery object has a lot of methods that are also on the Umbraco helper directly and I saw new Searching capabilities with the ContentQuery object:

    @Umbraco.ContentQuery.Search()
    
Please Sign in or register to post replies

Write your reply to:

Draft