| | 34 | |
| | 35 | == Using the EVENT-TYPE attribute == |
| | 36 | |
| | 37 | For 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 | |
| | 43 | Results 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 | |