Page 1 of 1

Swift - make Before text into a tab.

Posted: Thu Aug 11, 2022 11:17 am
by norman
You can put text that appears before the first {tab name}... into its own tab.

Edit layout Swift Tabbed Product Description and look for:

Code: Select all

	echo ($before != '' ? '<div id="tbbefore_<actinic:variable name="EncodedProductAnchor" />" class="tabberbefore">' . $before . '</div>' : '');
Replace it with:

Code: Select all

	// make any prefix text into a tab			
	if ($before != '' ) 
		{
		$tabcode = '&#123;Description#125;<h3>Product Description</h3>' . $tabcode;
		}