17488 Posts in 4473 Topics by 1978 members
|Go to End|
29 November 2008 at 1:43am
The way to edit additional db table fields in CMS is to overwrite getCMSFields function. I want to fill some fields automaticly and disable them from editing by cms users. How can I make this? I see to solutions:
1) worse - in getCMSFields fill fields witah values, and disable them from editing in cms
2) better - catch save action called when button "save & publish" pressed and set fields
First solutions is quite easy to implement. But I've no idea how make second solution.
Thx for any help
29 November 2008 at 8:57am
this is not hard at all, try with overriding the $defaults array,
and specify the default values you need there.
then after that in the getCMSFileds method use headerfields
|Go to Top|