We’re in the process of building a new site in v.9 with the Clonamental theme. When inserting an accordion block, it shows the accordion title in a button, - clicking on the button opens the text as expected. The classic Bootrap view with arrow is not available.
I found that editing the title with the cursor is not possible and in the Ckeditor you cannot use the styles defined in pagetheme.
How can I use my own template for the accordion block?
View.php is from the core and contains classes in Sass, Bootstrap 5.
It seems, that there’s no code for bootstrap 3, therefore the accordion block cannot be used for elemental theme.
Thank you JohntheFish for helping.
I have tried that already. But for some reason my template doesn’t work. I have a view.css and view.ph in my theme folder /mytheme/blocks/accordion/templates/myaccordion/
I guess that correctly translating all _variables from Bootstrap 5 Sass into BS3 LESS is a difficult task since there’s no accordion class in BS3.
I simply want to use the accordion block for the built in Elemental theme. Why is it sooo difficult to achieve? I thought using a CMS-proprietary block would work.
The default Magic Tabs template tries harder to adapt to your theme. Magic Tabs also provides a bit more flexibility within the block edit dialogue for choice of icons etc.
However, the main advantage is Magic Tabs is not limited in the kind of content you can put into a tab or accordion.
You may still have issues with the v9.0.1 block template bug and need to apply the core patch from github. I expect v9.0.2 will be released soon with the core system for assigning block templates fixed.