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

Forums / General Discussions / Showing Related Products

Showing Related Products

2 posts, 0 answered
  1. Asif
    Asif avatar
    110 posts
    Registered:
    18 Nov 2010
    21 Dec 2010
    Link to this post
    Hi,
    There is a functionality that Admin can select multiple related products on creation of each product. I am storing the values in a meta key. for example "c94cfc98-6189-4593-9d48-99be4d8b66e9|new|c94cfc98-6189-4593-9d48-99be4d8120321|demo2| ". That means I am storing Produc Name and Id. Now I want to show the list of related products on the front page (I am using an external template for it "ContentViewSingleItem.ascx"). In Front Page, I can show only the related Product Name but I want to show the link to redirect user to detail description of this related product also I want to show the little description about it and the publication date as well
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 Dec 2010
    Link to this post
    Hello Asif,

    Get a list of all related products by using ContentManager.GetContent () method and then for each IContent item call UrlWithExtension which will give you the url to the item. You need to format the url based on a page on which you have a control that displays your products, so you can navigate to them.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered