I think we should have a shortcut method on the Event Object that would give 
the first event name.


If someone will put in a ticket, I'll make sure it happens in the next release.


DW
------Original Message------
From: Sean Coyne
Sender: [email protected]
To: model-glue
ReplyTo: [email protected]
Subject: [Model-Glue] Re: Does the view know which event was called?
Sent: Dec 21, 2009 8:59 AM

<cfset theEventRequested = event.getvalue(event.getvalue
('eventname')) />

On Dec 21, 8:47 am, Preserved Killick <[email protected]> wrote:
> I've got a view page that used a GoogleMap api and it needs the a
> different body tag in my template. Rather than make a new template or
> event type, it seems simpler to have the template conditionally set
> the body tag for the one event that will need it.
>
> Something like:
>
> <cfif #event# is "page.directions">
> <body id="home" onunload="GUnload()">
> <cfelse>
> <body id="home">
> </cfif>
>
> Is the event name available to the view page?
>
> arguments.event.getValue("EventName") does not work.
>
> Of course, if there's a better way I'm all ears.
>
> -jeff

-- 
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

Sent from my Verizon Wireless BlackBerry

-- 
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