[SOLVED] Add checkbox to contenttype (Cataloger)
Posted: Thu Jan 22, 2009 9:57 am
Hi,
I’m trying to add an additional checkbox to the catalog-item-contenttype (Module Cataloger).
I already managed to let the box appear in the admin. The new prop is also stored in the database, but its value is not saved. Whenever I reedit the page the checkbox is off…
Here’s what I did:
I added this to SetProperties()
Then I added this to the EditAsArray-Function under tab2:
Does anyone see what I’m missing??
Thanks for your help
I’m trying to add an additional checkbox to the catalog-item-contenttype (Module Cataloger).
I already managed to let the box appear in the admin. The new prop is also stored in the database, but its value is not saved. Whenever I reedit the page the checkbox is off…
Here’s what I did:
I added this to SetProperties()
Code: Select all
$this->mProperties->Add('string', 'showOnFront', '');
Code: Select all
$ret[] = array('Show on Front Page','<input type="checkbox" name="showonfront"'.($this->showOnFront?' checked="checked"':'').' />');
Thanks for your help