cedib Posted July 5 Share Posted July 5 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 More sharing options...
Daresh Posted July 5 Share Posted July 5 You need to redesign your module, widgets are for the front. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now