+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / showing tag related blogs

showing tag related blogs

3 posts, 0 answered
  1. Martin
    Martin avatar
    3 posts
    Registered:
    20 Aug 2012
    16 Oct 2012
    Link to this post
    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?
  2. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    18 Oct 2012 in reply to Martin
    Link to this post
    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
  3. Martin
    Martin avatar
    3 posts
    Registered:
    20 Aug 2012
    18 Oct 2012 in reply to Daniel Plomp
    Link to this post
    Hi daniel,
    Thank you for your reply, I would be most grateful if you could show an example .
3 posts, 0 answered