Point taken.

I wish I were. I'm in Houston.

Sent from iPhone 3G

On Oct 9, 2009, at 3:24 PM, Dan Wilson <[email protected]> wrote:

> Right, well that makes sense. Though depending on what you are  
> doing, you may not find <before> to be the best templating use. If  
> you run into Chicken vs Egg issues, feel free to use both <before>  
> and <after> blocks to get the right mix.
>
> Aren't you in LA John?  I'm doing a free day of training tomorrow if  
> you are going to be around. If you have an interest, let me know and  
> I'll check on where we are on capacity.
>
>
> DW
>
> On Fri, Oct 9, 2009 at 4:17 PM, John C. Bland II <[email protected] 
> > wrote:
> DOH! Changed the after to before and it works. That's what I get for  
> copy/paste then tweak. :-D
>
>
> ---
> John C. Bland II
> http://www.johncblandii.com
> http://www.johnandseason.com
> http://www.twitter.com/johncblandii
> ---
> Suggested sites:
> http://www.lifthimhigh.com - "Christian Products for Those Bold  
> Enough to Wear Them"
> http://www.sportsmatchmaker.com - "What are you doing today?"
>
>
> On Fri, Oct 9, 2009 at 3:14 PM, Dan Wilson <[email protected]> wrote:
> I think you misunderstand the order of operations.
>
> Your event handler has a body and a panel. When the event is fired,  
> both of these are queued for processing.
>
> Then, the EventType stuff kicks in (because you used the <after>  
> rule) and the messagecenter and quicksearch and other views are  
> queued for processing.
>
> Lastly, the view queue gets rendered in order, so that means body,  
> then panel, then globalnav, then utilities, then navsearch, then  
> quicksearch, then the footer.
>
> So, when the panel is rendered, all that is in the rendered view  
> collection is the body. Thus, when you ask for views that haven't  
> been manufactured yet, you get an empty string. Hence your problem.
>
>
> DW
>
>
>
> On Fri, Oct 9, 2009 at 4:07 PM, John C. Bland II <[email protected] 
> > wrote:
> http://modelglue.pastebin.com/d22e2ca16
>
> The template has the getView and the panel (passed in from MG  
> config) has another getView. If I don't use the panel and put the  
> code in the body.cfm, it works just fine. With the code in the panel  
> it fails.
>
> Is there a path issue when you get inside included templates? It  
> reminds me of includes in includes in includes with normal CF (where  
> the path isn't site root).
>
> Event Type:
>         <event-type name="Global">
>             <after>
>                 <views>
>                     <include name="globalnav" template="global/ 
> globalnav.cfm"/>
>                     <include name="utilities" template="global/ 
> utilities.cfm"/>
>                     <include name="navsearch" template="global/ 
> navsearch.cfm"/>
>                     <include name="quicksearch" template="global/ 
> quicksearch.cfm"/>
>                     <include name="messagecenter" template="global/ 
> messagecenter.cfm"/>
>                     <include name="footer" template="global/ 
> footer.cfm"/>
>                 </views>
>             </after>
>         </event-type>
>
> Handler:
>         <event-handler name="dashboard"  
> type="Global,SecurePage,InteriorTemplate">
>             <views>
>                 <include name="body" template="/pages/dashboard/ 
> body.cfm"/>
>                 <include name="panel" template="/pages/dashboard/ 
> panel.cfm"/>
>             </views>
>         </event-handler>
>
>
> ---
> John C. Bland II
> http://www.johncblandii.com
> http://www.johnandseason.com
> http://www.twitter.com/johncblandii
> ---
> Suggested sites:
> http://www.lifthimhigh.com - "Christian Products for Those Bold  
> Enough to Wear Them"
> http://www.sportsmatchmaker.com - "What are you doing today?"
>
>
> On Fri, Oct 9, 2009 at 1:59 PM, Dan Wilson <[email protected]> wrote:
> Sorry John, I really don't understand the question. Maybe more/ 
> better code snippets are in order?
>
> Might I suggest using http://modelglue.pastebin.com
>
>
> DW
>
>
> On Fri, Oct 9, 2009 at 2:47 PM, John C. Bland II <[email protected] 
> > wrote:
> bump
>
> ---
> John C. Bland II
> http://www.johncblandii.com
> http://www.johnandseason.com
> http://www.twitter.com/johncblandii
> ---
> Suggested sites:
> http://www.lifthimhigh.com - "Christian Products for Those Bold  
> Enough to Wear Them"
> http://www.sportsmatchmaker.com - "What are you doing today?"
>
>
> On Thu, Oct 8, 2009 at 12:39 PM, John C. Bland II <[email protected] 
> > wrote:
> Ok, I have templates which has a getView(...) and inside of the view  
> is another getView(...).
>
> Here's why:
> [template]
>   body
>     {global stuff here}
>     getView("panel")
>   /body
>
> [dashboard/panel]
> div id="left"
> getView("quicksearch")
> getView("messagecenter")
> /div
>
> [home/panel]
> div id="right"
> getView("login")
> getView("ad")
> /div
>
> So...the template includes the panel flat out. The config details  
> which panel to include and each panel could use some of the same  
> code from another panel.
>
> Now...the internal views (login, ad, search, etc) could get custom  
> tags (which I'm considering) but this issue came up and I don't like  
> not knowing why something fails.
>
> Thoughts?
>
> ---
> John C. Bland II
> http://www.johncblandii.com
> http://www.johnandseason.com
> http://www.twitter.com/johncblandii
> ---
> Suggested sites:
> http://www.lifthimhigh.com - "Christian Products for Those Bold  
> Enough to Wear Them"
> http://www.sportsmatchmaker.com - "What are you doing today?"
>
>
>
>
>
>
> -- 
> “Come to the edge, he said. They said: We are afraid. Come to the ed 
> ge, he said. They came. He pushed them and they flew.”
>
> Guillaume Apollinaire quotes
>
>
>
>
>
>
>
>
> -- 
> “Come to the edge, he said. They said: We are afraid. Come to the ed 
> ge, he said. They came. He pushed them and they flew.”
>
> Guillaume Apollinaire quotes
>
>
>
>
>
>
>
>
> -- 
> “Come to the edge, he said. They said: We are afraid. Come to the ed 
> ge, he said. They came. He pushed them and they flew.”
>
> Guillaume Apollinaire quotes
>
> >

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