Jump to content

How to add block to a new page

Recommended Posts

Hello All,

I would like to add "block new products" to a new page :)

Could you please help me with this ?


Thanks :)


Share this post

Link to post
Share on other sites

I guess the best way, if the page is custom, is to create a hook in the page's tpl, with {hook h='nameofthehook'}
Then extend the blocknewproducts module with an override, and add function hookNameOfThehook, and return whatever it returns for home/hometabcontent


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

  • Create New...

Important Information

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