Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Dynamic related documents View modes: 
User avatar
Member
Member
Jon White - 9/16/2013 10:14:00 AM
   
Dynamic related documents
Hi there,

I have used the related documents feature which is great, but i really would love to automate the process.

Is it possible to show 'related news'/'related publications' based on the tags/keywords of the document?

Ideally i want to display related news/blog/publications/events which will display automatically based on the content of the document (i.e. news article). I need the easiest way to do this.

I don't mind doing it using tags. (ideally would be great if it did it based on text keywords - but that may not be possible)

Am I right in thinking I could create an extra field in the document type where i can input tags, then I'd use a repeater to display a set of documents i.e. News articles. Then i could add a WHERE condition to filter them.

However I wouldn't want to hard code an exact tag name into the WHERE in the repeater, it would have to match them automatically somehow. So find another news story for instance that uses the same tag and display.

Does anyone know the exact code i would need or how to go about this?

Thank you in advance

Jon

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/18/2013 1:30:52 AM
   
RE:Dynamic related documents
Hello,

When using related documents, you can use a repeater web part and configure the relationships part of its configuration to display related documents to the current document.

Or, you can use tags feature as you have mentioned. Please see how to tag documents and also how to use the tag cloud web part. In the same way you can just configure the repeater.

Best regards,
Juraj Ondrus

User avatar
Member
Member
vcarter - 9/18/2013 10:02:52 AM
   
RE:Dynamic related documents
The problem you will have with using tags is user input. The potential for things to be misspelled and or associated incorrectly not to mention making sure it is parsed correctly.

One thing to consider is creating a limited set of criteria. Topics, categories, whatever, and assign them to a news article using a multiple select box or a dropdown, depending on how many relational items you want to match. Create a custom table to contain your filter terms and use that to populate the multi-select.

You can then use a custom query to filter your results.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/19/2013 1:11:15 AM
   
RE:Dynamic related documents
Hi,

So, they can use the pre-defined categories.

Best regards,
Juraj Ondrus