routing for dynamic page

edited October 2014 in Modules
which function handling the routing of location field when creating page at backend dynamically?

Comments

  • edited 6:27AM
    I'm not quite sure I follow but will give it a shot.

    All pages created in the CMS get passed to the fuel/modules/fuel/controllers/page_router controller (see the routes config). This works only if there is no controller specified with the same URI location (this allows us to have normal CI functionality and allow for controllers). The location value set there determines what layout and variables to associate with the page.
  • edited 6:27AM
    can i extend that controller and modify the routing functions there in application/controller folder, which will eventually makes fuel cms routing the pages according to my own defination?
  • edited 6:27AM
    You should be able to do that. You'll need to adjust the routes file to point to your controller instead of fuel/page_router
Sign In or Register to comment.