Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Get content type from content id without loding content.

$
0
0

Hi,

Is there a nice way to get the type of a content with contentreference or id without loading the content?

I found this project https://github.com/vimvq1987/CatalogContentTypeResolver but it uses methods from Commerce and we use CMS only.

I´m rebuilding the Link validation scheduled job to be able to detect if the ~/link/{guid}.aspx is a reference to a block.

We have hundreds of references in the softlink table to block content that all get market as 404 in the scheduled job.

Any idées?


Viewing all articles
Browse latest Browse all 9076

Trending Articles