hi,
i trying build component in joomla want item in multiple categories.
whenever select ]multiple=multiple in xml form, , submit form, catid set zero.
<field
name="catid"
multiple="multiple"
type="category">
<option value="0">joption_select_category</option>
</field>
how achieve that?
secondly code insert catid values in db.
protected function loadformdata()
{
// check session entered form data.
$data = jfactory::getapplication()->getuserstate('com_xyz.edit.xyz.data', array());
if (empty($data))
{
$data = $this->getitem();
}
print_r($data);
return $data;
}
can me out in this...
regards
prashant
i trying build component in joomla want item in multiple categories.
whenever select ]multiple=multiple in xml form, , submit form, catid set zero.
<field
name="catid"
multiple="multiple"
type="category">
<option value="0">joption_select_category</option>
</field>
how achieve that?
secondly code insert catid values in db.
protected function loadformdata()
{
// check session entered form data.
$data = jfactory::getapplication()->getuserstate('com_xyz.edit.xyz.data', array());
if (empty($data))
{
$data = $this->getitem();
}
print_r($data);
return $data;
}
can me out in this...
regards
prashant
Comments
Post a Comment