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?

 
Mnkras replied on at Permalink Reply
Mnkras
yes just use custom templates, or you could hack your theme
mech7 replied on at Permalink Reply
How do i assign the templates ? :)
mech7 replied on at Permalink Reply
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);
                        ?>
okhayat replied on at Permalink Reply
okhayat
Did you try to use the template files name without the template/ prefix?
As far as I know, this is how it works.
<?php
...
$a->setCustomTemplate('autonav','faq.php');
...?>
mech7 replied on at Permalink Reply
Ah yes just got that working... thanks :)