It is possible to tweak Tabber to automatically create a first tab containing other bits of the Product Layout. The tab will only be created if there's some content in it.
In the example below we'll move the Components and Attributes to the first tab.
1) Go to Design / Library / Layouts / TabbedDescription; right-click TabbedProductDescription and select Copy.
2) Rename that copy to be TabbedProductDescription Customised.
3) Edit TabbedProductDescription Customised and look for the line
Code: Select all
TBPRDSC;
Code: Select all
// START Customisation to include Actinic content as first tab
$firsttab = <<<ENDOFCODE
<actinic:variable name="AttributeList" />
<actinic:variable name="ComponentList" />
ENDOFCODE;
if ((strlen($firsttab)) > 10 ) $firsttab = '{CHOICES}' . $firsttab; // only add tab if there's some content
{
if ( preg_match('/(^.*?)({.+?}.*$)/s', $desc, $bits) ) // is there at least one tab?
{
$desc = $bits[1] . $firsttab . $bits[2];
}
else
{
$desc = $desc . $firsttab;
}
}
// END Customisation to include Actinic content as first tab
6) Go to Design / Library / Layouts / Products; right-click Standard Layout Using CSS - Tabbed Descriptions and select Copy.
7) Rename that copy to be Standard Layout Using CSS - Tabbed Descriptions Customised.
Edit Standard Layout Using CSS - Tabbed Descriptions Customised and look for the line
Code: Select all
<actinic:variable name="TabbedDescription" value="TabbedProductDescription" />
Code: Select all
<actinic:variable name="TabbedDescription" value="TabbedProductDescription Customised" />
Code: Select all
<actinic:variable name="AttributeList" />
<actinic:variable name="ComponentList" />
Now if you use layout Standard Layout Using CSS - Tabbed Descriptions Customised for a product you'll find a first tab CHOICES containing the Actinic Components and Attributes.
It is easy to add additional tabs for other elements. Just repeat steps 3 and 4 (amending the word CHOICES and replacing the two Actinic Variables. Don't change anything else.
Also do step 10 to remove these Variables from their usual place in the product layout.