Request a new block type "custum template selector"Browser Info Environment
I wonder if it is possible to ask you make new block type that "custum template selector".
I know the way to change a custum template, but editing blocks and changing cutsum teplate are two different actions. Some users want to change a custum teplate while they are editing.
This is something I had in mind myself, but no ones has asked me before - untill now. So I'm diving into this for you and will let you know when I've got more information.
As you can only have 1 template selected for the whole Block Type, it makes sense you can only have this once in your form. So it's not a field type like "Text" or "Text Area". So I'm thinking to have it inserted into a tab at the top maybe, saying "Advanced" when you check a checkbox saying "Selectable Custom Template" maybe? Same as when you click "Design & Custom Template". All your fields go into "Bascis" tab by default, so you have them separated. We may be able to add some more settings into this advanced tab, like custom ID and stuff like that (less priority for now I assume).
What do you think?
Thank you for your reply.
For this block, what I want to do is exactly as you say "same as when you click "Design & Custom Template"". If I can use a new block, it will helps me a lot.
From here, not requests, just I want to hear your advice.
For example, I have a block with title, image, button.
Title : default, bigger
Image : left, right
Button : blue, green, red
Then total template shoud be 2 * 2 * 3 =12.
In this case, do you make 12 template or write codes for handling style,
or make 12 new blocks?
I have not found good solution for this case.
In some situations you may need a combination of left/bigger/red maybe and some others (so not all 12), and in that case you can make a "global" select and write some PHP code yourself to add the classes belonging to that combination. So maybe combinations like:
"Big letter combination"
Just an exmaple. I'd never use templates for a thing like this, only use templates if you have a complete different design/HTML for it!
Thank you for your advise.
I will use "select" types and set class for style.
And I will use "custum template" for different structure.
I am making a "call to action" block for several variations.
So I try to find easy way to change styles and structures.