Accordion
Permalink Browser Info Environment
Hi Jordan,
Thanks for this excellent addon.
Is there a way to add other blocks in to it? I basically need to add an accordion, such as remo's Expand/Collapse addon (which we used previously).
The reason we can't just add it below the DC block is because we need any blocks created in the main area are wrapped to have a white box background. We previously used a stack but the group of blocks needed to be used (with different content inside) on different pages, so obviously changing the block's content was changing it globally instead of locally. The DC block allows us to have the H3, H4, paragraph and button that we need but without the accordion we used to have between the paragraph and the button.
Thanks for this excellent addon.
Is there a way to add other blocks in to it? I basically need to add an accordion, such as remo's Expand/Collapse addon (which we used previously).
The reason we can't just add it below the DC block is because we need any blocks created in the main area are wrapped to have a white box background. We previously used a stack but the group of blocks needed to be used (with different content inside) on different pages, so obviously changing the block's content was changing it globally instead of locally. The DC block allows us to have the H3, H4, paragraph and button that we need but without the accordion we used to have between the paragraph and the button.
Type: | Discussion |
---|---|
Status: | New |
But that is not a very elegant solution. The method I prefer to achieve this kind of thing (if you're on Concrete 5.6) is this customization I made called "block wrapper templates", so you can wrap every block in an area in the necessary markup for the accordion:
https://github.com/jordanlev/c5_block_wrapper_templates...
Best of luck!
-Jordan