hi jeda one question. I'm trying to extend the product page, in a way similar to the one showed in tutorial 2 (when it's extending page). The table is correctly cerated, the php file is placed in mysite folder, but on the cms it's not working, calling it a product page in the create dropdown, and not showing any of the fields I added (for now, Checkboxfield and textfield)... any suggestions? It would be source of problems doing that?
<?php
class Agenda extends Product {
static $db = array(
'Ricambiabile' => 'Boolean',
'NumeroFogli' => 'Int'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Main', new CheckboxField('Ricambiabile'), _t('Agenda.RICAMBIABILE', 'Carta Ricambiabile'));
$fields->addFieldToTab('Root.Content.Main', new TextField ('NumeroFogli', _t('Agenda.NUMEROFOGLI', 'Product Code'), '', 4),'Content');
return $fields;
}.
}
?>