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
Jon
Are you building a custom block where you'd like that feature or are you asking to change the core?
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...
What's wrong with Block::setCustomTemplate?
Method looks easy to use.. I never tried it so far though.
Method looks easy to use.. I never tried it so far though.
didn't know about that method... I'll give it a go and let you know how I get on :)
Cheers Remo!
Cheers Remo!