1

If I insert a widget in content in CMS, is it possible to define the name of the widget? Like

{{widget type="catalog/product_widget_new" name="NAME_HERE" display_type="all_products" products_count="2" template="catalog/product/widget/new/content/new_grid.phtml"}}

So I can use it later in my code?

1 Answer 1

3

Unfortunately it is not possible.
The blocks or widgets you define using {{...}} directives are instantiated and processed on the fly and the {{}} directive is replaced by the real HTML as the page is being constructed. They are not added to the layout object.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.