Creating Tabs and Accordians

I’m just starting out with using Content Blocks and need to have a tabbed content field. I found Christian Seel’s code for creating this but it’s not clear to me what goes where.

The Code: https://gist.github.com/christianseel/80a9249920518954fda0

Slides: http://sedadigital.slides.com/sedadigital/contentblocks#/4

Here’s what I’ve done so far:

  1. Created a snippet named generateTabs with the php code and saved it in Snippets > ContentBlocks

  2. Created a chunk named tabNavigationItem and put that in Chunks

Now I’m at a loss as to how to build the rest of it. Am I creating Fields? If so, what do I put where? Layouts? Nested Columns? Any help greatly appreciated.

Never mind. I ended up using this to solve the problem and it’s working great.

1 Like