17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1778 Views |
-
Automatic filling database fields with values

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 fieldsFirst solutions is quite easy to implement. But I've no idea how make second solution.
Thx for any help
-
Re: Automatic filling database fields with values

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
| 1778 Views | ||
|
Page:
1
|
Go to Top |


