Go to content Go to navigation Go to search

Tag Builder Fix · Oct 1, 08:04 pm by Rick Silletti


The Tag Builder for category_list really isn’t doing the job, this works and doesn’t seem to break anything else.

// -------------------------------------------------------------
function tag_category_list() 
{
global $step,$endform,$name;
$invars = gpsa(array('form','label','type','wraptag','break','labeltag'));
extract($invars);
$out = form(startTable('list').
tr(tdcs(hed(gTxt('tag_category_list'),3),2) ).
tagRow('label', fInput('text','label',$label,'edit','','',20)).
tagRow('type', type_pop($type)).
tagRow('wraptag', fInput('text','wraptag',$wraptag,'edit','','',2)).
tagRow('break', fInput('text','break',$break,'edit','','',5)).
tagRow('labeltag', fInput('text','labeltag',$labeltag,'edit','','',5)).
$endform
);
$out .= ($step=='build') ? tdb(tb($name, $invars)) : '';
echo $out;
}
	

//-------------------------------------------------------------
New Function
//-------------------------------------------------------------
function type_pop($type)
{
$arr = array(
'' => '',
'article' => 'Article',
'image' => 'Image',
'link' => 'Link',
'file' => 'File'
);
return ' '.selectInput("type",$arr,"$type"); }


Section: article


Name
E-mail
http://
Message
  Textile Help