Welcome Guest, Not a member yet? Register   Sign In
How to deal with page routing in a custom CMS?
#2

[eluser]c77m[/eluser]
Set the default controller to your pagemaker controller and use a function there to check the db for matching entries. Redirect to a specific page if there is no match.

Just don't have controllers by the same name as pages, and that would work fine. (I do this for sections of my site, but the cms only affects specific paths like /news/* etc.)


Messages In This Thread
How to deal with page routing in a custom CMS? - by El Forum - 01-14-2011, 04:37 AM
How to deal with page routing in a custom CMS? - by El Forum - 01-14-2011, 07:03 AM
How to deal with page routing in a custom CMS? - by El Forum - 01-14-2011, 07:46 AM
How to deal with page routing in a custom CMS? - by El Forum - 01-14-2011, 07:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB