Jump to content

Widget not working in backoffice


Recommended Posts

Hi,

I'm using a module to create additional fields in products and categories. The module gives a widget code to show the value in the front like this {widget name='advancedcustomfields' hook='seocategory'}

I have put this code in the tpl of another module that manages the menu.

It works fine in the front, however in the backoffice, the menu module also calls this tpl and it gives me an error on the widget code:

Syntax error in template "file:/themes/mytheme/modules/megamenu/views/templates/hook/categories-tree.tpl" on line 24 "{assign var="seoValue" value={widget name='advancedcustomfields' hook='seocategory' params=['category'=>$category.id_category]}}" unknown tag 'widget'

[SmartyCompilerException 0]

Any idea?

Thanks

Link to comment
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...