How to set a Custom Template by hardcode for an Area:
Permalink 1 user found helpful
Hi,
I try alot but not succeded, for setting a custom template for an area by hardcode for specific blocks in that area.
I am using this code for setting custom template....
Any one know about it????
I try alot but not succeded, for setting a custom template for an area by hardcode for specific blocks in that area.
I am using this code for setting custom template....
<?php $block = BlockType::getByHandle('easynews_list'); $a=new Area('All News Area'); var_dump($block);exit; $a->setCustomTemplate($block, 'all_news'); $a->display($c); ?>
Any one know about it????