|
Home > Archive > WebSphere Portal Server > January 2004 > how to remove place bar and page bar
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 to remove place bar and page bar
|
|
| Rajeev Dave 2004-01-19, 2:55 pm |
| Hi All,
I do not want to display Places/Pages in my portal. The portal is just a
single page. No other places/pages need to be incorporated.
To achieve this, In Default.jsp, I tried commenting the calls to
PlaceBarInclude.jsp and PageBarInclude.jsp.
But I see a bunch of links on the left hand side of the screen which are all
the places/pages.
How do I achieve the above mentioned functionality
Rgds,
Dave
| |
| Michael Harris 2004-01-19, 2:55 pm |
| The left hand navigation is rendered in the file named
LayeredContainer-V.jsp in the skins. That code dynamically adjusts to the
presence or absence of PlaceBarInclude.jsp and PageBarInclude.jsp. To
remove that navigation, you will need to edit that file and comment out what
you don't want to see. However, I would caution you to be careful in this
file. If you simply comment out all navigation, you won't be able to
navigate to the administration portlets to administer the portal when you
log in as wpsadmin.
Verify your Access Control settings for unauthenticated users and
authenticated users. Make sure they don't have access to anything but the
single page you want to show. That will remove all pages except the one.
Then you need to put some kind of conditional logic in
LayeredContainer-V.jsp to remove the remaining markup if the logged-in user
isn't wpsadmin. If you don't care about logged in users, then it is even
easier to do this check.
<wps:if loggedIn="yes">
<!-- insert markup here -->
</wps:if>
"Rajeev Dave" <rajeevd@aztec.soft.net> wrote in message
news:bbkcp7$3pgu$1@news.boulder.ibm.com...quote:
> Hi All,
> I do not want to display Places/Pages in my portal. The portal is just a
> single page. No other places/pages need to be incorporated.
> To achieve this, In Default.jsp, I tried commenting the calls to
> PlaceBarInclude.jsp and PageBarInclude.jsp.
>
> But I see a bunch of links on the left hand side of the screen which are
allquote:
> the places/pages.
>
> How do I achieve the above mentioned functionality
>
> Rgds,
> Dave
>
>
| |
| kdefty 2004-01-19, 2:55 pm |
| As what you have here is a place with a single page
then the easiest way to do this is simply modify
the theme's PlaceBarInclude.jsp to process the
place without actually rendering anything.
As in, effectively a null pageGroupLoop ...
{wps:pageGroupLoop}
{/wps:pageGroupLoop}
... doing this means you have handled the
processing of the place(s), so the portal
doesn't handle it for you during rendering
with a left nav.
You will need to do the same thing in the
theme's PageBarInclude.jsp if you don't
want any page info rendering, otherwise
it to will be caught and handled by the
left nav. In other words do the minimum
required inside ...
{wps:pageLoop}
{/wps:pageLoop}
Note: < & > changed to { & } for clarity only.
Hope this helps. Cheers, ... Keith.
|
|
|
|
|