Tabber. Making a default tab if none already defined.
Posted: Thu Jun 28, 2007 4:28 pm
If you want a single tab applied to all layouts that you haven't entered any
{Info}Description...
type entries then do this.
Edit layout TabbedProductDescription
look for the line
immediately after that line add the following
And, of course, replace layout ProductDescription with TabbedProductDescription in all your Product lLayouts.
{Info}Description...
type entries then do this.
Edit layout TabbedProductDescription
look for the line
Code: Select all
TBPRDSC;
Code: Select all
if ( ! preg_match('/(.*?)({.+?}.*$)/', $desc) ) // if no tabs?
{
$desc = '{Details}' . $desc; // add one in
}