I have Landing page type with url pattern /{%DocumentCulture%}/landings/{%NodeAlias.ToLower()%}, "Page Tab" option is checked.
I want to be able to add Landing pages in tree and use Page builder for each without making many controllers.
Now I have one LandingsController class and one Landings view and get 404 error
How does your page builder enabled controller look like? You will need to create some kind of "shared" controller which will handle your routing options and then you will create the logic which veiw should be returned by the controller. To begin with, I would check that the page builder is registered correctly and then create a simple controller and view and take it from there and start adding the logic you need.
Juraj, if I remove /{%NodeAlias.ToLower()%} from path, it will be work fine, so controller is working. But I need unique url for each page
So, how is your routing configured and what is your controller like? You need to ensure that the unique URLs will match some route and the route will use appropriate controller.
Please, sign in to be able to submit a new answer.