showing tag related blogs

Posted by Community Admin on 03-Aug-2018 15:07

showing tag related blogs

All Replies

Posted by Community Admin on 16-Oct-2012 00:00

I am using a blog control so that a user can click through on a list of blog entries to see an individual blog entry.  All blog posts are tagged.  On a single blog detail page I would like to display a second control that relates blog items which are related through tag to the single blog item displayed on that page.  I am not sure how to achieve this?

Posted by Community Admin on 18-Oct-2012 00:00

Hi Martin,

You could create a new widget which shows blog posts based on the tags of the current blogpost.

So, assuming you know how to create a new widget, you can start with getting the current blogpost from the url. Based on this blogpost you can get the categories or tags from this blogpost.

When you have these values (TrackedList<Guid>) you can use them to get blogposts with help of the API, and filter them based on the tags you received from the current blogpost.

I can prepare an example for you, if that is helpful.

This is how I would do this.

Regards,
Daniel

Posted by Community Admin on 18-Oct-2012 00:00

Hi daniel,
Thank you for your reply, I would be most grateful if you could show an example .

This thread is closed