Copied to clipboard

Flag this post as spam?

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


  • Andrei 15 posts 99 karma points
    Jul 01, 2020 @ 13:29
    Andrei
    0

    Is there a way to quickly find doc type usage? (for both element/non-element types)

    Trying to refactor a solution, I need to find all usages of a doc type.

    Tried using some of the umbraco source code, like:

    SqlContext.Query<IContent>().WhereIn(x => x.ContentTypeId, contentTypeIds)
    

    but that only gives me only content tree nodes, not nested content elements.

    When I refactor and rename an element type, for example, I need to know all the places where nested content of that type will die, so I can take a copy and rebuild it after.

    Is there a way to fetch the nested content elements of type?

Please Sign in or register to post replies

Write your reply to:

Draft