[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...