[Kentico 9] Content Filtering section in a repeater not working when consuming data from a datasour

Saurav Kumar asked on August 19, 2016 10:23

Hi All,

I have a custom page type defined in my application.
I want to display those page types in a single page using a repeater and a datasource. I have to display four out of them first then a section of the page and then again the rest of four ( I have 8 documents out of my page type created in the tree).
So I took a Pages Data Source webpart and a Repeater webpart.
I assigned the path and page type to be selected , in the datasource.
When I assign "ORDER BY expression:" , "Select top N pages" & "WHERE condition" in the repeater , it doesnt work. But when I set the same things in the datasource , it works fine. Does these settings work only when the "Path" is selected and not when the DataSource is used in the repeater under the "Content" section.
Any insights on this would be helpful.

Thanks,
Saurav

Recent Answers


Richard Sustek answered on August 19, 2016 10:59

Hi Saurav,

I think that the problem here is that the Repeater web part does not work with Data source web parts. The data sources are really for loading the data from somewhere and Repeater is for BOTH loading data and displaying them at the same time.

If you want to use Data source web parts then you need to connect them to Basic repeater web part where you need to connect the data source with the basic repeater via their IDs. As you can see the Basic repeater does not have any "Where", Order by" or other conditions because it wouldn't make sense as data is retrieved via external data source.

0 votesVote for this answer Mark as a Correct answer

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