Sorry to ask this - but I honestly can’t find anything anywhere else. Do components with parameters work in tabs? Obviously it’s got to be driven by shortcode (since there’s no intra-tab builder functionality), but no matter what I do, I cannot get it to work. I see old posts that suggest there might once have be a problem doing this, but I’ve seen no updates either way. Are there any tricks with this?
Update: For clarity, here’s what I’ve done:
-
I have a fairly complex component I’ve created that’s meant to swap several blocks of text in and out. The component will sit in 6 identical tabs. As the user clicks each tab, the responsive template is the same but the text is different depending on the tab label (I’m linking the in-progress page in a secure note).
-
On the component, I’ve set up my parameters, and they seem to work fine. Just to test it out, I swapped the background color and text for a text element like so:
{
“competencyColor” : {
“label” : “Background”,
“type” : “color”,
“initial” : “#000000”
},
“appearanceLabel” : {
“label” : “Appearance Label”,
“type” : “text”,
“initial” : “Scooby”
}
}
This seems to work just fine and in the builder I can see the “params” tab appear with the correct editable text boxes.
- Back on the page, in the first tab of the tab element, I inserted the component. The component inserts just fine! But when I try to apply the parameters nothing happens. There’s no builder inside a tab so I have to use the following shortcode:
[cs_component id="…" parameters=’{ “competencyColor” : “#B10800”, “appearanceLabel” : “Appearance” }’]
I could just be doing this all wrong.