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