>
> I want to have two layouts in my jetspeed application. The first is
> a login layout that has a top nav, login screen, and bottom nav. The
> other layout is a top nav, left nav, screen with my portlets, and
> bottom nav. There will be a different portlet set for each link on
> the left nav.
>
Im not a Turbine expert (you may want to ask on the Turbine list), but I can
try to answer.
The Layout module is called from the Page module. The Layout defines the
physical layout of a webpage. It generally defines the location of the
Navigation portion (ie: the top and bottom part of the webpage) as well as
the location of where the body (or Screen) of the page is. The Layout module
executes the Screen module to build the body of the webpage. It executes the
Navigation modules to build the portions of the webpage which define the
navigation for the website.
I recommend looking at JetspeedTemplatePage. From there, you can see if the
user is logged on, like:
if ( data.getUser().hasLoggedIn())
data.setLayoutTemplate(layout1);
else
data.setLayoutTemplate(layout2);
I think a simpler approach may be what is actually done in jetspeed now.
Here is the velocity "top.vm" navigation:
<div>
Welcome to Jetspeed -> <a href="$jlink">Home</a> <br />
#if ($data.User.hasLoggedIn())
<a href="$jlink.setPage("Customize.vm")">Customize</a>
<a href="$jlink.setAction("LogoutUser")">Logout</a>
<a href="$jlink.setPage("EditAccount.vm")">Edit Account
($data.User.UserName)</a>
#else
<a href="$jlink.setPage("Login.vm")">Please login to Jetspeed</a>
#end
</div>
If you are using JSP, reference the jetspeed:navigation tag in default.jsp
layout:
<jetspeed:navigation defaultTemplate="html/top_default.jsp"
loggedInTemplate="html/top_loggedIn.jsp" />
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]