Set block template from the 'add' block dialog?

Permalink
Any idea if this is possible? Basically, I want the user to be able to select the template while they are adding the block, rather than add the block, then set the template... Is this possible?

Jon

jbx
 
Remo replied on at Permalink Reply
Remo
Are you building a custom block where you'd like that feature or are you asking to change the core?
jbx replied on at Permalink Reply
jbx
But, I'm thinking it might just be easier to place all three templates inside my view.php and use a variable from the form to select which one is used. Setting the template looks like way too much of a core hack to be worth it...
Remo replied on at Permalink Reply
Remo
What's wrong with Block::setCustomTemplate?

Method looks easy to use.. I never tried it so far though.
jbx replied on at Permalink Reply
jbx
didn't know about that method... I'll give it a go and let you know how I get on :)

Cheers Remo!