Jump to content
royalmakeyp

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 :)

758493488_ScreenShot2019-04-10at9_48_06AM.thumb.png.57b57ec9a3b7e38583ab94c85d59ccf2.png418440102_ScreenShot2019-04-10at9_47_43AM.thumb.png.ed1ed4cc391abb7e2b9bbcaf2d52ccb0.png

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