Title: Layouts
Thread: Layouts
Forum: Discussions
Conference: ColdBox
User: pwpeterson
Hi, Luis. Thanks for a great framework. The documentation is terrific.
For
some unknown reason to me I can't get my extra layout to be called.
<DefaultLayout>Layout.Main.cfm</DefaultLayout>
<DefaultView>vhHome.cfm</DefaultView>
<Layout file="Layout.Public.cfm"
name="public">
<View>security/vwLogin.cfm</View>
</Layout>
I swap this
layout with the default and it displays as expected.
in my OnRequestStart
method I check for login status. If the user is not logged in s/eh is forwarded
to the login page:
if (NOT getPlugin("security",true).isLoggedIn())
{
Event.overrideEvent("ehSecurity.dspLogin");
}
However, the default layout
is used and not the 'public' layout. What am I doing wrong?
I see in the
layout definitions each layout is given a name. Am I suppose to use this name
somehow when setting the view?
thx again.
Paul Peterson