Copied to clipboard

Flag this post as spam?

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


  • Johan Dahlström 33 posts 146 karma points
    Mar 19, 2020 @ 19:12
    Johan Dahlström
    0

    Get content type for Umbraco default types

    I'm making a plugin and need some assistance with the Content Type Service:

    ContentTypeService.GetAllContentTypeAliases() yields:

    [0] "Member"    
    [1] "Folder"    
    [2] "Image" 
    [3] "File"  
    [4] "myTemplate"    
    

    However, ContentTypeService.Get(aliasAbove) can only fetch the type for myTemplate above, the rest are returned as null. How can I fetch those type definitions?

    Off topc: How to I post to other forums than "Using Umbraco And Getting Started"? No matther what I do, the threads end up here

Please Sign in or register to post replies

Write your reply to:

Draft