I realize that I've been more than a bit neglectful on keeping up with the CMS blog postings and so I wanted to share a few things over a few blog posts that came up this week that would probable be helpful for a lot of folks.
There's at least three different ways that tabs are implemented within the CMS, each with varying degrees of complexity. I'll talk about the more complex variety, which offers quite a bit of flexibility but can be somewhat confusing.
Deb Rydman and Marsha Squires were playing around with the /exchanges portion of the CMS and had some difficulty figuring out how to make callouts go away from some of the tabs. The first attachment shows what a callout is:
Drilling down, we see that these tabs are part of a block, with data type "tabs_with_column_blocks with id". Here's the data for this particular tab:
For this particular data definition, semantically, tabs contain 1 or more tab content groups, and each tab content group contains one or more block groups (listed as "A Block Group"). Each "A Block Group" within a "Tab Content Group" allows you to link to existing content, such as the callout of Arthur. In addition to the familiar WYSIWIG and the "A Block Group" sections to link to additional content, each tab content group has a field listed as "Span#". What's this "Span#" and why is it here?
The "Span#" represents the relative width of the content, expressed as the numerator of the fraction x/12. So if you want a particular tab content group to take up half of the available area, you would express that as 6 in each of the "Span#" fields within the tab content group sections, because 6/12 = 1/2. Similarly, if you want to split the area into 3/4 and 1/4, then the Span# fields would have 8 and 4 respectively as is shown in that image. Something to note: the Span# numbers must add up to 12 over the entire set of tab content groups under a specific tab.
Tabs get a little confusing to be sure. Once the skeleton is set up, its relatively straightforward to make changes though, and we're always happy to help others out. Kudos to Deb and Marsha for persevering!