How to make selected item transformation to work with a Query Data Source

Axel Larsen asked on July 15, 2015 20:11

I'm new to kentico and I would like to use a Query Data Source in conjunction with a Repeater that has a selected transformation to list the results of the query AND a selected item transformation so that when a person views an item in that list, it shows the full details of that item (not the list summary of items).

Recent Answers

Petr Jiroušek answered on July 23, 2015 04:40

Hi Alex, welcome to Kentico community.

As you probably noticed you cannot use default repeater with custom query. However there are few options how to achieve your goal.

  1. you can override selectall query and still use you default repeater. But be aware that selectall query is used by default. If you need to list data always this way, it can be fine.
  2. you use Repeater with custom query. Then instead of using selected item transformation you link to the detail page with normal "a href" inside list transformation. The detail page will contain Universal Page Viewer webpart with your item transformation. Please note that detail page needs to stop inheriting list page template.
  3. you extend repeater with custom query. A bit old article, but principle is the same.
  4. you place two webparts at the list page (repeater and page viewer) and switch visibility based on the query string.
0 votesVote for this answer Mark as a Correct answer

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