PKP Bugzilla – Bug 4987
modified OMPPageRouter: role router
Last modified: 2010-05-01 00:17:10 PDT
We need a router for custom roles.
The basic principle:
If RoleType is an AuthorRoleType then import('pages/author/index.php').
(The routing could get more complex.)
Created attachment 2791 [details]
patch against pkp cvs
Created attachment 2792 [details]
patch against OMP pre-release
What are your thoughts on the approach outlined in the two patches?
The approach involves a new function in the PKPPageRouter class that is overriden in OMPPageRouter. The custom role's type determines the route.
Tyler, do you need more info on this than what we've already talked about by Skype/in the OMP team call?
Just to document what we determined today when we talked about the "user groups" (alias "flexible roles"): If we want user-group-specific URLs then, yes, the right approach would be to extend the page router and let it route the user-group specific page to the canonical role-specific handler. The exact approach depends on the back-end API which Juan will implement.