Find an entire item that uses a common Sublayout in sitecore 6.2.0

Is it possible to get a list of all the elements in a sitecore file that uses a common sub-tier or XSLT in the view tab for display, i.e. Suppose there is a subclass called layout1.ascx that is used by 5 elements. You can get a list of all these 5 items using the search method.

Thanks in advance.

Regards, Divya

+6
source share
2 answers

You probably need to do this in two steps (or one, if only one template).

You need to use the Link database.

The easiest way to see these โ€œlinksโ€ is to go to Sublayout or Rendering and go to the โ€œNavigationโ€ menu, and then click โ€œLinksโ€. This should show you all the elements that point to this current element and all the elements that current elements point to (i.e., in both directions).

This will probably give you a list of templates and / or elements (if the sub-level is installed directly on the element).

Then go to the template and see how to do the same to see which elements have a link to the template.

This should show you which elements use which sublayers.

Of course, this requires a Link database (this should be done automatically, but you can force it using "Start"> "Control Panel"> "Databases") "Rebuild Link Database" and that Sublayouts, etc. linked in sitecore ..

Hope this helps.

+15
source

The Link database offer is great, but if your sub-task is being used by hundreds of items, loading may take some time.

Another alternative is this quick request:

fast://*[@__Renderings='%{FAAD00AE-A089-4AEF-989C-73917660FF48}%'] 

This can be launched in the Developer Center, under Tools> XPath Builder (or for Sitecore 8.x + XPath Builder can be found in /sitecore/shell/default.aspx?xmlcontrol=IDE.XPath.Builder).

Change the pointer above if necessary.

+6
source

Source: https://habr.com/ru/post/913007/


All Articles