CCK Edit Button

Component ID

234782

Component name

CCK Edit Button

Component type

module

Maintenance status

Component security advisory coverage

not-covered

Downloads

1650

Component created

Component changed

Component body

Provides an 'Edit Button' CCK field, allowing the content-type designer to add a javascript-enabled button to the CCK field set, active when the node is being edited, but hidden when the node is being viewed.

I wrote this module as part of a Kosada Inc development project. We're using this for an Appointment-Invoice content type --- the user fills in CCK fields for the appointment begin and end time, and then presses the "Calculate Billing Information" button (created with this module) whose Javascript code --- depending on the duration, time-of-day, and other factors --- calculates the number of billed hours, the rate, and the total amount, and fills in other CCK fields with this information. We chose to do it this way instead of using a "computed field", so that the user could tweak the computed values when necessary.