Check the ContentType of a ContentReference without loading the object

Member since: 2012
 

It would be helpful with a function to see which ContentType a ContentReference points to without actually having to load the entire data object.

We have two different ContentTypes: CategoryNode and BrandNode that both are linked to entries with NodeRelations. Our customer updates the relations through an integration and at that time we need to load the existing relations and determine which one(s) points to a BrandNode. Today we have no better solution than to load all nodes from the database and check the ContentType afterwards. The most annoying part is that we get over thousands of database calls to get assets through ecf_CatalogNode_Asset, which isn't needed at all to update relations. undecided

#192417 May 16, 2018 14:49
  • Member since: 2011
     

    Sounds like something that should be supported at CMS core level first. Well you can always have some SP to query data if you want to :) - or if you want to use APIs - the ICatalogSystem has something that might interest you.

    #192430 May 16, 2018 17:07