XF 2.1 Can a template parse URL parameters?

mark22

Member
In my template I want to create sidebar navigation and the user can navigate to different pieces of content depending on which navigation button is selected.

I want to basically use the URL to decide which navigation tab the user is on.

so for example
forums/index.php?mypage&tab=1
forums/index.php?mypage&tab=2
forums/index.php?mypage&tab=3
 
I don't think this is possible with a default template, but you can hook into your template using the templater_template_pre_render event, or just extending the controller parameters as @Jeremy P suggested. If the controller is directly from your add-on, I'd do the latter, otherwise the former.
 
Back
Top Bottom