Sitecore Link Database - 0 views
-
Mark Ursino on 23 Sep 10Sometimes it is required to get all Items in the database based on a given template. Iterating through the entire database may be a very expensive operation though. However in this particular case, we can resort to the Link database. Link database is used by Sitecore to resolve all the linking issues - what referrers and what references the Item has. And if an item is based on a template, it also counts as a reference from the item to the template. The solution then is very simple: get all the referrers for a given template item.