Welcome Guest, Not a member yet? Register   Sign In
Dynamic Navigation Based on Permissions
#1

[eluser]Unknown[/eluser]
Hello,

I'm building a site that requires a navigation to be constructed based on user permissions. I would like to display this navigation without having to worry about calling a build nav function in every controller. I was thinking about using a hook to accomplish this task, but wasn't sure if this was the most appropriate mechanism. Any feedback would be greatly appreciated.

One other bit of information. I'm using the display override hook to build the layout of the page. Rather than including header and footer view calls in each controller, I do this automatically in this hook. So my controller will only have the view call to display the content in the middle of the page. The controller sets a layout variable which tells the hook which layout to use when it is run. If I can integrate the nav construction into this framework that would be great.

Thank you for your time.




Theme © iAndrew 2016 - Forum software by © MyBB