Mark, I be posted this on 14-mar-2002. Is this not a workable solution?
2) Alter the login process, I believe the class is jlogin, to display a a terms screen. See the secret_key processing for a guide. The terms screen will have an accept button the will continue the login process, i.e. tell jlogin that the user has accepted the terms. The reject button will tell jlogin to terminate the login process. You may want the terms screen to verify the it was called by jlogin, not diectly from viu a URL, to keep spiders from reading the terms. (I have not looked into the specifics to implement this piece) If you elect #2, and the name of the message screen is configurable, this would make a nice enhancement to Jetspeed. Or directly stated, please contribute it [:)] From, JR.p # Name of screen to display after the user is logged in, but before # their portal is displayed login.message.screen=terms Burmeister, Mark wrote: > Where would you consider doing this. I dont want a user to see the portals > until they have agree with my legal text. > I did this in home.vm so I could test if they have accepted the legal text. > > Any way, the reason I want to display a portal is so I can send dynamic text > that is created in a portal by an administrator in the home.vm file. If > there is another way to display configurable dynamic text beside displaying > a portal I would gladly give it a try. > Thanks for all your help. > Mark > > > -----Original Message----- > From: David Sean Taylor [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 21, 2002 2:14 PM > To: 'Jetspeed Users List' > Subject: RE: jetspeed.getPane("news") > > > > I think I confused the issue. > That should work unless there is a bug, but I don't think it's the best > place to do it. > Do you have a news.psml in your user's psml directory? > > Anyway, you may have uncovered a problem in home.vm regarding using > different pages... > > >>-----Original Message----- >>From: Burmeister, Mark [mailto:[EMAIL PROTECTED]] >>Sent: Thursday, March 21, 2002 10:48 AM >>To: 'Jetspeed Users List' >>Subject: RE: jetspeed.getPane("news") >> >> >>David, >>My home .vm file looks like this >>#if ($data.User.hasLoggedIn()) >>#if ($data.getSession().getAttribute("ACCEPTED")) >> $data.setMode("default") >> $jetspeed.getPane("default") >>#else >> >> >>What I want to do is show a portlet in this section. >>I am not sure what the code is to add a portlet into this >>section. What is the velocity code to add a portlet >>$jetspeed.getPane("news") >>Obviously I was wrong.. >> >> >> >><b>$l10n.TEXT_HERE</b><br> >> <form name="Form" method="POST" action="$link" >>onsubmit="return false;"> >> <input type="checkbox" id="LegalText" value="true"/> >> <input type="hidden" name="username" >>value="$data.getUser().getUserName()"/> >> <input type="submit" value="I Agree" >>onclick="acceptLegalText('$l10n.LEGAL_PROMPT_AGREE');" /> >> <input name="$jlink.ActionKey" type="hidden" >>value="$config.getString("action.legalText")" /> >> </form> >>#end >>#else >>$data.setMode("default") >>$jetspeed.getPane("default") >>#end >> >> >>Thanks again for your help... >>Mark >> >> >> >> >>-----Original Message----- >>From: David Sean Taylor [mailto:[EMAIL PROTECTED]] >>Sent: Thursday, March 21, 2002 1:18 PM >>To: 'Jetspeed Users List' >>Subject: RE: jetspeed.getPane("news") >> >> >>Panes are not pages. You can encode the news page as, >>assuming its for your current user as: >> >>$jlink.addPathInfo("page", "news") >> >> >> >> >>>-----Original Message----- >>>From: Burmeister, Mark [mailto:[EMAIL PROTECTED]] >>>Sent: Thursday, March 21, 2002 9:56 AM >>>To: 'Jetspeed Users List' >>>Subject: jetspeed.getPane("news") >>> >>> >>>Does this feature work? Version 1.3.2a >>>I have been trying to add a pane to one of my .vm files and >>>all i get is the default pane. jetspeed.getPane("news"), I >>>have the news psml file in every directory possible but it >>>never picks it up. Am I doing something wrong or does this >>>not work for anything but default? Please advise. Thanks Mark >>> >>> >> >> >>-- >>To unsubscribe, e-mail: >><mailto:[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]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
