Welcome Guest, Not a member yet? Register   Sign In
Hide/Show content on sidemenu
#3

[eluser]TWP Marketing[/eluser]
You can pass an identifier for each unique 'page' of content. Use it to conditionally display your menu/sidebar content.

This could be set in each content view, since they are usually unique, but if your controller/function values are not unique, you may need one additional value to drive your menu/sidebar logic.

I know this is very general, but it depends on how your menu and forms passes values back to the controller, either as POSTed vars or as query string segments.

I use a var:
Code:
$pn = 'some_page_name'
which is passed as a hidden form field in my menu items. You can also pass it as a URL segment:
Code:
anchor("controller/method/".$pn,"Click Here")
if you're using html links and don't mind the user seeing the value.

There are other approaches. I'd like to hear from others on the forum about how they handle his...


Messages In This Thread
Hide/Show content on sidemenu - by El Forum - 03-24-2011, 10:42 AM
Hide/Show content on sidemenu - by El Forum - 03-24-2011, 12:18 PM
Hide/Show content on sidemenu - by El Forum - 03-24-2011, 12:51 PM
Hide/Show content on sidemenu - by El Forum - 03-25-2011, 04:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB