Page Selector for Multiple Pages?

Nick Groos asked on October 8, 2019 17:26

We want to build a widget where content authors can select multiple pages to be used by the widget. The Page Selector component seemed perfect for this, but the 12SP documentation explicitly says it can only return a single page (despite returning a collection): "Note: In Kentico 12 Service Pack , the page selector can only be used to select a single page – the returned collection of PageSelectorItem objects always contains only one object. Due to forward compatibility and to limit any possible future changes in your project, the return type is a collection."

It sounds like this will be an upcoming feature of Page Selector. Are we able to accomplish this right now with OOTB Kentico components? Or would we need to implement something custom? Appreciate any info!

https://docs.kentico.com/k12sp/developing-websites/page-builder-development/page-and-media-selectors-for-page-builder-components

Recent Answers


Dmitry Bastron answered on October 9, 2019 10:23

Hi Nick,

I faced the same problem. But after a quick research realized it's easier and faster creating just X properties in the widget for now (in my case there were up to 6 pages required selection).

Other option would be using Path selector where you can select "folder" and inside the widget deal with all child pages of this "folder".

1 votesVote for this answer Mark as a Correct answer

Nick Groos answered on October 9, 2019 23:06

Thanks for your reply. We had been proceeding with the second option you described, but wondered if there was another way.

0 votesVote for this answer Mark as a Correct answer

Dražen Janjiček answered on January 13, 2020 10:05

I would really like to see support for this. It is a common request to select specific pages and sort them as needed for output. Creating tons of folders for that purpose is just bad UX.

0 votesVote for this answer Mark as a Correct answer

Arjan van Hugten answered on February 3, 2020 10:44 (last edited on February 3, 2020 10:44)

0 votesVote for this answer Mark as a Correct answer

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