On Wednesday, Jul 30, 2003, at 08:21 US/Pacific, Haggerty, Mike wrote:
> I do have a question about views. Currently, MachII does not support a
> common layout feature or the ability to nest layouts such as developers
> have seen in Fusebox.
You can cascade views tho':
<view name="contentView" contentKey="request.content" />
<view name="layoutTemplate" />
And map layoutTemplate to a (fairly standard) layout file that wraps
#request.content#
Another option is to use a plugin that implements the postView() method
and calls displayView() on the current event, using the layoutTemplate
view. Ben says this approach might change before the 1.0 release.
Both mechanisms work pretty well.
Note that the view cascading allows you to create portals very easily
since you can run multiple views into distinct contentKey variables and
then run the portal view that wraps all of those variables.
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4