Well its still not clear to me but Im notoriously dense as other users
on this list can attest to.

> src="xyz.vm"> 
       ^
This is not making use of the templating system, so you will never find
it in WEB-INF/templates.
Think I said this last time, use $jnavigation or #parse in velocity
templates to include other templates.

Think you will have to check to see if your logged on or not.
If not logged on, return the html below.
If logged on, then show the portal.
Something like this:

#if ($data.User.hasLoggedIn())

<html>
...
          $jnavigation.setTemplate("top.vm")
          $screen_placeholder 
          $jnavigation.setTemplate("bottom.vm")
...
</html>

#else

<html>
<head>
<title>Test Title</title>
</head>
<frameset rows="140,*"  border="0" framespacing="0" 
frameborder="0"> <frame name="main" scrolling="no" noresize 
src="xyz.vm"> </frameset> 
</html>

#endif

Hope that helps,

David


> -----Original Message-----
> From: Mani, Bharanidharan [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, May 02, 2002 10:27 AM
> To: 'Jetspeed Users List'
> Subject: RE: login page customization
> 
> 
> david,
>        i am sorry for not being clear.. let me repeat what i 
> want to do... I want to create my own login page. Since i 
> want to use the template services, i copied the content of my 
> login page in template/vm/layout/default.vm. The default.vm 
> looks like this :
> 
> <html>
> <head>
> <title>Test Title</title>
> </head>
> <frameset rows="140,*"  border="0" framespacing="0" 
> frameborder="0"> <frame name="main" scrolling="no" noresize 
> src="xyz.vm"> </frameset> 
> </html>
> 
> I have xyz.vm in my template/vm/navigations/html/xyz.vm 
> directory. So i gave the frame src path as: 
> "jetspeed/Web-inf/templates/vm/navigations/html/xyz.vm". This 
> didnt work. Then i copied in the current directory 
> (template/vm/layout/html/xyz.vm) it didnt work. But if i move 
> my xyz.vm outside Web-inf directory(for example
> "jetspeed/test/html/xyz.vm") xyz.vm works. the reason could 
> be because of web-inf directory.. 
>  
> 
> hope I am clear now..
> 
> thanks
> bharani.
> 
> 
> 
> -----Original Message-----
> From: David Sean Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 12:29 PM
> To: 'Jetspeed Users List'
> Subject: RE: login page customization
> 
> 
> Oh, sorry, you gave me the impression it was the layout.
> 
> So this is just a plain html page.
> 
> Then just place
> 
> src="/html/xyz.vm"
> 
> relative to your webapp root.
> 
> If you want to make use of the templating service, then you 
> have to place your content under WEB-INF/templates or 
> configure your templating service to look elsewhere. (If you 
> are using Velocity) you can include navigations with 
> $jnavigation and screens (other templates) with #parse. There 
> are examples of this in the distribution under WEB-INF/templates
> 
> > -----Original Message-----
> > From: Mani, Bharanidharan [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 02, 2002 9:12 AM
> > To: 'Jetspeed Users List'
> > Subject: RE: login page customization
> > 
> > 
> > This is the login page. I would like to login using my own
> > db2 database instead of hypersonic SQL. once the user is 
> > authenticated i will be using jetspeed to display & customize 
> > the portlet.
> > 
> > -----Original Message-----
> > From: David Sean Taylor [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 02, 2002 12:09 PM
> > To: 'Jetspeed Users List'
> > Subject: RE: login page customization
> > 
> > 
> > With Jetspeed 1.3a1, I had a frame controller (as in Jetspeed
> > controller) but its lost.
> > 
> > But in looking at your example, where does Jetspeed come into
> > play? I see no $screen_placeholder, so why are you even 
> > bothering to use Jetspeed?
> > 
> > > -----Original Message-----
> > > From: Mani, Bharanidharan [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 02, 2002 8:51 AM
> > > To: 'Jetspeed Users List'
> > > Subject: RE: login page customization
> > > 
> > > 
> > > david,
> > >     my home page looks something like this:
> > > 
> > > <html>
> > > <head>
> > > <title>Test Title</title>
> > > </head>
> > > <frameset rows="140,*"  border="0" framespacing="0" 
> frameborder="0">
> > >   <frame name="main" scrolling="no" noresize src="/html/xyz.vm"> 
> > > </frameset> </html>
> > > 
> > > 
> > > I have to give the path for frame src. i cant use
> > > $jnavigation.setTemplate("top.vm") here. is there a way 
> to overcome 
> > > this problem??
> > > 
> > > 
> > > 
> > > thanks
> > > bharani.
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > > <mailto:jetspeed-user-> [EMAIL PROTECTED]>
> > > For
> > > additional commands,
> > > e-mail: <mailto:[EMAIL PROTECTED]>
> > > 
> > > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:jetspeed-user-> [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:jetspeed-user-> [EMAIL PROTECTED]>
> > For
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail: 
> <mailto:jetspeed-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:jetspeed-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to