Changes between Version 4 and Version 5 of HowTos/HowToUseScaffolds/AddingSpecificEventHandlers

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

Added EVENT-TYPE demonstration

Legend:

Unmodified
Added
Removed
Modified
  • HowTos/HowToUseScaffolds/AddingSpecificEventHandlers

    v4 v5  
    3232</scaffold> 
    3333}}} 
     34 
     35== Using the EVENT-TYPE attribute == 
     36 
     37For 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. 
     38 
     39{{{ 
     40<scaffold object="contact" type="list,view" event-type="Admin,Sidebar,MainTemplate" /> 
     41}}} 
     42 
     43Results in two event-handler's with their main tag like those below: 
     44 
     45{{{ 
     46<event-handler name="contact.list" type="Admin,Sidebar,MainTemplate" /> 
     47<event-handler name="contact.view" type="Admin,Sidebar,MainTemplate" /> 
     48}}} 
     49