More in this section
Forums / Ecommerce / Filter product widget and ShopByFilterGroupViewModel

Filter product widget and ShopByFilterGroupViewModel

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. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    18 Feb 2004
    25 Feb 2013
    Link to this post

    Hi team,

    I see that the items that are rendered within the Filter product widget are based on the ShopByFilterGroupViewModel. Is there any way to have influence or manipulate the data inside that ViewModel?

    I don't like the 'by ...' prefix for the Group Title of the filters. How can I get rid of them?

    A quick and dirty solution would be this:

    if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) {
       var data = e.Item.DataItem as ShopByFilterGroupViewModel;
       data.GroupTitle = data.GroupTitle.Substring(3);

    But it isn't very nice. Can't I configure the behavior somewhere?

    Kind regards,

  2. Venkata Koppaka
    Venkata Koppaka avatar
    67 posts
    24 Sep 2012
    25 Feb 2013
    Link to this post
    Hi Daniel,

    Yes, each of the filter group titles are resources strings. You can change them in Administration -> Interface Labels & Messages.
    Below are the resource keys you would need to change in CatalogResources

    1. ByProductTypeFilterTitle
    2. ByPriceFilterTitle
    3. ByDepartmentFilterTitle
    4. ByTagFilterTitle
    5. ByClassificationFilterTitle

    Let us know if you have any questions.

    Kind regards,
    Venkata Koppaka
    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