Ernst,
I already did something similar to your approach. Just that first I
declared the default layout like this:
<Layouts>
<!--Declare the default layout, MANDATORY-->
<DefaultLayout>../../common/ui/layouts/Layout.Common.cfm</
DefaultLayout>
...
</Layouts>
I don't like the ../.. thing but at least it works and if needed it's
to be changed only in one place and, what it's more important, only in
the configuration file.
Then I wrote this common layout using renderExternalView to point to
the composing views (just that I use url paths and not filesystem
paths).
<cfoutput>#renderExternalView('/common/ui/views/UserInfo')#</
cfoutput>
Well, this approach is not bad for what I intend to do but, of course,
it would be nicer to have such a way to declare views/layouts
repositories to be search in cascade.
Still what I'd like better is not having to use a relative path
(<DefaultLayout>../../common/ui/layouts/Layout.Common.cfm</
DefaultLayout>) but just an absolute one (<DefaultLayout>/common/ui/
layouts/Layout.Common.cfm</DefaultLayout>).
Jesus
On Sep 30, 11:25 pm, "Ernst van der Linden" <
evdlin...@gmail.com>
wrote:
> or
> :
> #renderExternalView('c:\........\mysharedviews\skins\1\beforeRenderView.cfm')#
> #renderView()#
> #renderExternalView('c:\........\mysharedviews\skins\1\afterRenderView.cfm')#
>
> On Tue, Sep 30, 2008 at 11:23 PM, Ernst van der Linden
>
> <
evdlin...@gmail.com> wrote:
> > Why not create a simple layout like this? :
>
> > #renderExternalView('c:\........\mysharedviews\skins\1\header.cfm')#
> > #renderView()#
> > #renderExternalView('c:\........\mysharedviews\skins\1\footer.cfm')#
>
> > On Tue, Sep 30, 2008 at 7:46 PM, Luis Majano <
lmaj...@gmail.com> wrote:
> >> Jesus,
>
> >> Unfortunately, the layouts are constricted to their covnentions within an
> >> application. We only have as of now a Views External Location setting:
> >>
http://ortus.svnrepository.com/coldbox/trac.cgi/wiki/cbConfigGuide#Vi...