I don't think code such as:
<scaffold object="test">
<results>
<result do="template.main"
/>
</results>
</scaffold>
works in MG3 either.
MG2 would pull any additional <broadcasts/>, <views/> and <results/> xml
into the generated scaffold xml, but that doesn't seem to happen with MG3.
Again, this can be worked around by copying the generated scaffold xml.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Gareth Cole
Sent: 06 August 2009 18:52
To: [email protected]
Subject: [Model-Glue] conflicting type attributes in scaffolds
Hi,
I've been trying out the event types in MG3.
I got the following code to work:
<event-handler name="page.index"
type="templatedPage">
<broadcasts />
<results />
<views>
<include name="body"
template="pages/index.cfm" />
</views>
</event-handler>
However, when I tried this:
<scaffold object="test" type="templatedPage" />
I got an error message, and I realised that the 'type' attribute is already
used by scaffolds.
I can work around this, as I normally copy the generated scaffold xml into
my ModelGlue.xml anyway. I'm not really sure of any solution other than
renaming one of the 'type' attributes.
Thanks,
Gareth
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---