Jump to content

display hook position with parameters in .tpl


YoJoe
 Share

Recommended Posts

I'm  wondering how can I display a hook in template file using default method, but pass to it parameters to get the desired block.
I have couple html blocks assigned to certain hooks, lets assume they stay within displayNav hook.
They have automatically asigned ID during creation, and possible position value.

What I'd like to achieve with {hook h='displayNav'} is to pass an ID or position value to get the desired html block.
I don't know if default {hook} smarty constant allows to pass more paramaters than only hook name.
Like for example {hook h='displayNav' id=1} or {hook h='displayNav' position=1}

I was looking for such info or similar question but seems that I can't find the function responsible for it, and make an override or use builtin parameters. Anyone could enlighten me a bit?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More