Different block template per position?
Permalink 1 user found helpful
Is there a way to setup a different block template for different positions?
For example content on the right gets a different template then content on the main area?
For example content on the right gets a different template then content on the main area?
yes just use custom templates, or you could hack your theme
How do i assign the templates ? :)
OK i found some function but it not works.. does anybody have a demo? it be nice if this was in the docs :p
<?php $a = new Area('Right'); $a->setCustomTemplate('autonav', 'templates/faq.php'); $a->display($c); ?>
Did you try to use the template files name without the template/ prefix?
As far as I know, this is how it works.
As far as I know, this is how it works.
<?php ... $a->setCustomTemplate('autonav','faq.php'); ...?>
Ah yes just got that working... thanks :)