Move the the events which you dont want a default type on into a seperate
handlers block (you can have as many <event-handlers> as you want)

<event-handlers defaultype="defaulteventtype">
<!-- events that need layout etc go here -->
</event-handlers>

<event-handlers>
<!-- events with no layout go here -->
</event-handlers>

also fyi, the defaulttype and type attributes accept a comma separated list
of event type to apply to the handlers.  So can split up things like layout
and security into separate event-types and apply them where needed.  Here's
an example from an app i'm working on.

<event-handlers defaulttype="default">
<!-- home, error handlers etc go in here -->
</event-handlers>

<event-handlers defaulttype="default,loggedin">
<!-- anything to be secured goes in here -->
</event-handlers>

<event-handlers defaulttype="ajax,loggedin">
<!-- these serve up json, but only to logged in users -->
</event-handlers>

Hope that helps
Cheers, Chris


On 13 December 2011 10:11, Rawlins <[email protected]> wrote:

> Thanks Chris,
>
> That's really helpful. So it looks from the doc that I can do type="" to
> remove the default type from the specific event.
>
> That'll do nicely for now I think.
>
> Although, as quite a majority of my events have this type of setup I may
> consider removing the default event and defining it explicitly on each one
> that needs it.
>
> Thanks.
>
> Robert
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
>

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to