Google Groups Home Help | Sign in
Assembling view-pages on the fly
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Zack Pitts  
View profile
 More options May 6, 7:29 pm
From: "Zack Pitts" <folkstr...@hotmail.com>
Date: Tue, 6 May 2008 16:29:47 -0700
Local: Tues, May 6 2008 7:29 pm
Subject: Assembling view-pages on the fly
I'm working on a CMS that will need to dynamically announce the events
necessary to fulfill each request and assemble the necessary views on the
fly.

The flow will be

1. Analyze URL to determine which pieces of content need to be assembled for
the given request (pre-process plug-in)
a. Look up which Mach-II events will handle retrieving those pieces of
content
b. Determine which views need to be called for the events

2. Announce the events

3. Render the views

I know I can use announceEvent() within my plug-in to dynamically queue the
events, but what's the best way to dynamically render the views?  Should
each view be set up as a separate event handler to be queued (via
announceEvent()) at the end of the chain?  If so, would this cause an
inadvisable performance hit?  Other suggestions?

Thanks!

Zack Pitts


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile
 More options May 7, 1:16 am
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Wed, 07 May 2008 00:16:22 -0500
Local: Wed, May 7 2008 1:16 am
Subject: Re: [Mach-II] Assembling view-pages on the fly
Zack Pitts said the following on 5/6/2008 6:29 PM:
> I know I can use announceEvent() within my plug-in to dynamically queue the
> events, but what's the best way to dynamically render the views?

A filter can dynamically display a view by calling:
arguments.eventContext.displayView(event=arguments.event,
viewName="ViewName", contentArg="NameOfArg")

See the CFC API docs for more information:
http://www.mach-ii.com/index.cfm/go/resources/

.pjf


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google