| | 21 | |
| | 22 | |
| | 23 | == Using the (optional) EVENT-TYPE attribute == |
| | 24 | |
| | 25 | 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. |
| | 26 | |
| | 27 | {{{ |
| | 28 | <scaffold object="contact" type="list,view" event-type="Admin,Sidebar,MainTemplate" /> |
| | 29 | }}} |
| | 30 | |
| | 31 | Results 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 | |