0

My problem is that i cant display some custom (created by me) template in home page. Read a lot but without success. I've tried to display it in content from backend in Magento like

{{block type="catalog/product_list" category_id="5" template="catalog/product/list2.phtml"}}
7
  • what is the result of this?
    – Magento 2
    Mar 23, 2016 at 18:34
  • Nothing, just blank div
    – IdlleF
    Mar 23, 2016 at 18:36
  • Just Cross check File Location and Catgory ID once
    – Magento 2
    Mar 23, 2016 at 18:41
  • /app/design/frontend/custom_theme/default/template/catalog/product/list2.phtml This is location of file and custom theme is enabled Top books (ID: 5) This is the ID of the category, nothing wrong
    – IdlleF
    Mar 23, 2016 at 18:51
  • is the catalog/product_list block type whitelisted in the security settings (system/permissions/blocks)? Mar 23, 2016 at 18:56

2 Answers 2

2

Whitelist the catalog/product_list block type in the security settings (system/permissions/blocks)

0

Make sure the catalog/product_list block was added to the white list of allowed blocks.

Magento 1.9.2.2 introduced a white list of allowed block types. If a block was added to a CMS page or to a static block through a block code (for example: {{block type="catalog/product_list"), and the block is not on the white list, it will not be displayed on frontend.

The white list of allowed blocks can be found under System -> Permissions -> Blocks

The permission system normally only allows a reduced number of blocks:

core/template
catalog/product_new

So you can manually add blocks to the white list. For example, you can add these blocks:

cms/block
catalog/product_list

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.