contribution list filter

Sonia Samimi asked on February 15, 2020 12:49

Hi there; I'm using Kentico V10 and I have a Page Type which I named it Rule, I have used a contribution list web part to edit its Items. I want to use a filter to filter the RoleCode field. Please help me if there is a way to use a smart filter web part to filter the data.

Correct Answer

Juraj Ondrus answered on February 18, 2020 09:00

Please check the other link - in this case you need to link the filter with data source web part which will get the data and then link it to the basic repeater. The contribution list web part is basically a pre-configured repeater. So, you will configure the repeater and data source web parts in the same way.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Juraj Ondrus answered on February 17, 2020 10:24

Do you want to search in those items for some term or you want to filter them? There is a difference how searching and filtering works in the background.
When using smart search, some algorithms are executed to return the results based on some relevance and score. When using smart search filters - these are just adding another terms to the initial search term to refine the search results by relevance and score. Just like you search on Google for something - you may get various results based on the search algorithms. I would say, that when searching you have some part of the results which are fuzzy/random - I am looking for some term, but I do not know what the exact results are yet, as the user.

Using data filtering on the other hand you have defined the set of data. E.g. when filtering products or in your case branches and events. For example, the user wants to display all events for branch A - so you will just filter the dataset since the system knows the events related to branch A. Basically, you need to add a WHERE condition to the SQL query which is getting the data from the DB. In this case it is better to use filter+datasource+viewer web parts as described in the documentation. The data source will select all products by default, but the filter(s) will tell the datasource to select only shoes this time, select only green shoes, green shoes size 10…etc. But in this case, you need to create the filter which will work with the desired set of data.

In some cases, you can interchange the two above, as mentioned at the top, for the end user the look and feel is in 99% of cases the same. So, depending on your needs, you may be able to achieve your need by using smart search and search filters. But in some cases, creating then the search condition and filter's conditions and values may get tricky and complicated. So, it is better to use the classic filter + datasource web part approach.

0 votesVote for this answer Mark as a Correct answer

Sonia Samimi answered on February 18, 2020 07:28

Thank you for the response; I want to filter them So I think it's better to use the classic filter. so please guide me on which web part helps me to do that?!

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on February 18, 2020 07:38

Please check the links in my previous message - I linked the documentation on how to create the filter web part - you will have to create the logic which creates the resulting WHERE condition for the SQL query which gets the data and then, there is a link to a documentation on how to use the filter web part with data source and listing web parts.

0 votesVote for this answer Mark as a Correct answer

Sonia Samimi answered on February 18, 2020 08:50

I have Created a Custom filter but there isn't a place in the Contribution List Web part to refer the filter name. I've done it easily for the repeater web parts.

0 votesVote for this answer Mark as a Correct answer

Sonia Samimi answered on February 18, 2020 10:18

Thank you

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.