Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Add a single product in a static block
 
dolu
Member
 
Total Posts:  41
Joined:  2009-05-25
 

Hi everyone!

My title isnt correct, as i’d like to display a single news (not product), but the idea is the same.

I have to display a single news in a static block that will be shown throughout the website.

I have created a new module called “News” and would like to show i.e. news_id = 2
This code doesnt work, when i edit my static block, nothing shows up :

{{block type="news" news_id="2" template="news/news.phtml"}}

Anyone knows how to achieve this?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top