Displaying documents related to current document

You may want to display a list of documents that are related to current document without using tags or tag clouds.
If you want to display related documents of current document using just current document tags without using tag cloud web part or tag groups, you can use following where condition in some listing web parts (e.g. datalist,repeater,...).

WHERE condition:

DocumentID IN ( SELECT DocumentID FROM CMS_DocumentTag WHERE TagID IN ( SELECT TagID FROM CMS_DocumentTag WHERE DocumentID = {%DocumentID%} ))

In this way, all of the tag related documents will be selected in your listing web part.

See also:

Applies to: Kentico CMS 4.0
Share this article on   LinkedIn

Juraj Ondrus

Hi, I am the Technical support leader at Kentico. I'm here to help you use Kentico and get as much as possible out of it.