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

Conditional Block - If statement… How? 
 
Tylerrr
Jr. Member
 
Total Posts:  6
Joined:  2009-02-08
 

I need to show a block depending on its state, it should look something like this:

<?php if BlockID ('IDENTIFIER'exists and enabled   ?>
<?php 
echo $this->getLayout()->createBlock('cms/block')->setBlockId('IDENTIFIER')->toHtml() ?>
<?php 
endif; ?>

You can clearly tell I no programmer, but I really need you’re assistance! smile

Can anyone help, please?
Thanks a million!

T.

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