More in this section
Forums / General Discussions / Showing Related Products

Showing Related Products

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Asif
    Asif avatar
    110 posts
    18 Nov 2010
    21 Dec 2010
    Link to this post
    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
    12 Sep 2017
    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