You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by li...@geekbliss.com on 2006/02/09 12:58:12 UTC
Changing portlets displayed for logged in users
Hello,
I've currently got one portlet (login portlet) defined on my default-page.psml.
After a user logs in, I want this portlet to disappear and be replaced by
several other 'dashboard' portlets, only viewable by logged in users.
Whats the easiest way of doing this? Can I add security to specific fragments
within my psml file or is there a way I can automatically redirect logged in
users to a new psml file containing my dashboard portlets?
Thanks in advance
Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Changing portlets displayed for logged in users
Posted by Raj Saini <ra...@gmail.com>.
You can create a template .psml page for various groups or users. For
example if you want logged in user with role user, to see a particular
.psml, configure a template .psml pages under directory _user in your
portal application's WEB-INF/pages folder. Now, whenever you create a
new user in your portal, this template will be copied to user's custom
directory and every logged in user will be directed to same page layout.
Regards,
Raj
>>I've currently got one portlet (login portlet) defined on my
>>default-page.psml.
>>
>>After a user logs in, I want this portlet to disappear and be replaced by
>>several other 'dashboard' portlets, only viewable by logged in users.
>>
>>Whats the easiest way of doing this? Can I add security to specific
>>fragments
>>within my psml file or is there a way I can automatically redirect logged
>>in
>>users to a new psml file containing my dashboard portlets?
>>Thanks in advance
>>Dan
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>
>>
>
>
>--
>thanks,
>- Jian Liao
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Changing portlets displayed for logged in users
Posted by James Liao <ji...@gmail.com>.
Hi dan,
Check out the code
LoginRedirectorServlet.java<http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/login/LoginRedirectorServlet.java?view=markup>,
you can hard coding the redirect target psml by modify this class or set
Request parameter with name as the value of LoginConstants.DESTINATION and
value as your target psml.
If you want your 'dashboard' portlets page to be only viewable by logged in
users, you must setup the page constraints, check this
<http://portals.apache.org/jetspeed-2/guides/guide-security-declarative-psml.html>
out.
HTH,
- Jian Liao
On 2/9/06, lists@geekbliss.com <li...@geekbliss.com> wrote:
>
> Hello,
> I've currently got one portlet (login portlet) defined on my
> default-page.psml.
>
> After a user logs in, I want this portlet to disappear and be replaced by
> several other 'dashboard' portlets, only viewable by logged in users.
>
> Whats the easiest way of doing this? Can I add security to specific
> fragments
> within my psml file or is there a way I can automatically redirect logged
> in
> users to a new psml file containing my dashboard portlets?
> Thanks in advance
> Dan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
--
thanks,
- Jian Liao