|
Home > Archive > WebSphere Portal Server > August 2007 > How can I hide the portal page URL in theme, once I logout in
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How can I hide the portal page URL in theme, once I logout in
|
|
|
|
Hi,
I do not use any Websphere Server login and I do not use any LDAP. I just use stand-alone application login in portlet that just checks the database user and password tables.
Once I login, I need show some of the portal page URLs in theme navigation. And once I logout, I need hide these URLs in theme navigation. Can I use session to pass login status from portlet to theme, and then hide URL in theme?
Thanks very much in advance!
| |
| Oliver Then 2007-08-13, 7:24 am |
| You can use the portal "if" tag to check if the user is logged in. In
your theme JSP, this could look like:
<portal-logic:if loggedIn="yes">
... your URL...
</portal-logic:if>
This way, your URL should only be visible if the user is logged in. If
you need further details, have a look at the InfoCenter:
http://publib.boulder.ibm.com/infoc...dgn_ptltld.html
Oliver
| |
|
| # I wrote earlier:
> As I remember it, any portlet should not be able to
> tell the portal how to render the theme according to
> best practice...
What I meant to say was that according to best practice the portlet should not bother about the environment around, just itself. This due to the fact that the portlet developer never can be sure where the portlet will be deployed, and which other portlets
will be available on the site...
R.
|
|
|
|
|