Jump to content

siarlis's Content

There have been 2 items by siarlis (Search limited from 24-Jan 19)


Sort by                Order  

#317063 Banners Addon Tpl Hooks

Posted by siarlis on 26 June 2019 - 06:41 AM in Developers' Corner

Hello Again,

 

Thank you for your responses Ecomlabs , Soft Solid ,

 

The path was correct just forgot to write down the addon directory.

 

The general_content.post.tpl and general_content.pre.tpl Hooks not work for some reason ! Just return a blank template.

 

The solution was to use the general_content.override.tpl and Refresh the Banner Addon from Manage-addons section.

 

Without refreshing the addon – Clearing the cache from admin panel or deleting the /var/cache folder doesn’t have any result.

 

Thank you !




#317048 Banners Addon Tpl Hooks

Posted by siarlis on 25 June 2019 - 02:50 PM in Developers' Corner

Does anyone have successfully used the TPL hooks from banners addons ?

 

I am trying to use the banners:general_content hook that exists inside (design/backend/templates/addons/banners/views/banners/update.tpl) but without any luck.

 

I have tried to place the hook inside

design/backend/templates/my_changes/hooks/banners/general_content.tpl but it returns a blank page …  - No errors in logs

 

I have successfully created a PHP hook for get_banner_data function but template hooks refuses to work .

 

Any idea ?