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

Forums / General Discussions / Public site with regional content

Public site with regional content

2 posts, 0 answered
  1. Steven
    Steven avatar
    12 posts
    Registered:
    13 Jul 2012
    29 Feb 2012
    Link to this post
    Hi,

    I'm creating a public website where a user can click on a map to select a region they're in. The user does not log in but content should still be filtered based on the location they have clicked. I'm not trying to do localization with this, I really want to filter the content.

    Example: I set up 4 news items with a taxonomy that includes a North America region and 2 news items with a taxonomy that includes a Europe region. A user browses to the site and they select North America as their location. I store the information (in a cookie or session state or whatever I come up with) and use it to filter the available news content to only display the items with the North America taxonomy.

    I tried looking for a solution but there's not a lot of information that I can find. I'm sure I'm not the only one that is trying to do this, but I need some help in getting this going. I'm not even sure if taxonomy is the correct way to go so if there's another way, feel free to make suggestions.
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    16 Aug 2017
    05 Mar 2012
    Link to this post
    Hi,

    Thank you for using our services. You can easily achieve the desired functionality by passing in a URL parameter that will filter by the specified classification. By default all Sitefinity ContentView controls use URL parameters to filter the displayed content, for example if you have a NewsView control (News widget) on your page and pass to the URL of the page http://www.domain.com/mypage/-in-Tags/myTag only news items which have the myTag tag assigned to them will be displayed. In other words you could implement some logic where you preserve the tag value (for example in Session) when the user selects a location on your map and then append the /-in-Tags/ parameter to the requested URL of the page where you have News widget.

    I hope you find the above information useful. please do not hesitate to get back to me if you need some additional information or have any additional questions.

    Kind regards,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested 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