Changes between Version 3 and Version 4 of HowTos/HowToUseScaffolds/AddingScaffolds

Show
Ignore:
Timestamp:
12/22/09 23:24:50 (16 years ago)
Author:
Chuck Savage <chuck@…> (IP: 71.56.239.159)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTos/HowToUseScaffolds/AddingScaffolds

    v3 v4  
    1919  1. Contact.Commit - Saves a contact to the database 
    2020  1. Contact.Delete - Deletes a given contact 
     21 
     22 
     23== Using the (optional) EVENT-TYPE attribute == 
     24 
     25For a given scaffold tag, you may specify the list of event-types to apply to each event-handler tag created by the scaffold tag.  This is especially useful for applying functionality such as security automatically to your generated event handlers. 
     26 
     27{{{ 
     28<scaffold object="contact" type="list,view" event-type="Admin,Sidebar,MainTemplate" /> 
     29}}} 
     30 
     31Results in two event-handler's with their main tag like those below: 
     32 
     33{{{ 
     34<event-handler name="contact.list" type="Admin,Sidebar,MainTemplate" /> 
     35<event-handler name="contact.view" type="Admin,Sidebar,MainTemplate" /> 
     36}}} 
     37 
     38