To create a static page dropdown with a page tree in October CMS, follow the steps given below:
Install ‘RainLab.Pages’ plugin for static pages functionality.
in your form field YAML file, define the dropdown field:
In your controller or model, create a method to fetch the page tree:
Check the dropdown in the backend form to ensure it correctly lists static pages.