简体   繁体   中英

magento: How to add a phtml block from the template to a CMS page

i have a block in a template called "shopper". I want to add a block that's in "app\\design\\frontend\\default\\shopper\\template\\tag\\popular.phtml".

I tried:

    {{block type='core/template' area='frontend' template='tag/popular.phtml' }}

The block is not showing. No PHP error also.

Did you try

{{block type="core/template" template="tag/popular.phtml"}}

If that doesn't work, make sure you clear cache (if any) and double check that 'shopper' is set to your default theme.

Read more @ http://www.magentocommerce.com/boards/viewthread/221573/

If the content of 'tag/popular.phtml' is the same or similar to base/template/tag/popular.phtml then try

{{block type="tag/popular" template="tag/popular.phtml"}}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM