Specify a start point in a Page Selector field type

Alexandre Zuppo asked on October 23, 2023 21:05

I have a custom "Page Type" with a "Page Selector" field in it. I would like to set a kind of "start point" for the user to select a page. For example: - When the user is editing a page (with that Page Type) and click on "Select" button for that field, a "Select Path" modal window appears with the root page selected (in left panel). I would like to let a specific page set (in the document tree, in left panel) instead of the root document so that the user could select child node of that page I pre-set.

The goal is to facilitate the things to the user because, for that specific field, the user can only select pages under a specific node in the document tree.

Recent Answers


Juraj Ondrus answered on October 24, 2023 13:08

Well, the page selector control does not have any property for this to be set. I would try using UniSelector - it is not that nice but you can configure it to list only pages from desired location.
Or, you can create a clone of the default page selector form control and adjust the code to fit your needs (you can find the code files in /CMSModules/Content/FormControls/Documents/)

0 votesVote for this answer Mark as a Correct answer

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