WebSphere Portal Server - Changed theme, now I can't get admin link

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > February 2004 > Changed theme, now I can't get admin link





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 Changed theme, now I can't get admin link
scannell

2004-02-15, 3:33 am

I changed theme of the portal and know I (New page, edit page and administration links don't show up)how do I get them back. Can anyone help. And is there a listing somewhere of what the files do what. So if something like this happens again. I can just r
efer to the correct file a make the change in the file.

Thanks a bunch
Dave Hay

2004-02-15, 6:33 am

Hi

There are two ways around - if you still have the "YourCo Financial" page
available, you'll find an administration link when you switch to this page.
You can then change the default theme to something else i.e. WebSphere.

If not, you can use XMLAccess from a command prompt to export the portal's
configuration to an XML file which you then modify and re-import (ensuring
that you make backups along the way). I've done this in past when a customer
had made the "Admin with Left Navigation" theme the default and had removed
the YourCo Financial page. The process below changes the default theme from
"Admin with Left Navigation" back to "WebSphere".

1) Open a command shell and run the following script: -

\WebSphere\PortalServer\bin\xmlaccess -in
\WebSphere\PortalServer\doc\xml-samples\Export.xml -out
backup_config.xml -user <wpsadmin> -pwd <wpsadmin> -url
<hostname:port>/wps/config

2) Make a backup of the newly created configuration file before making
changes - this allows the configuration to be restored if errors occur.

3) Edit new_config.xml

Use a suitable editor to change the following two definitions: -

Old

<theme action="update" active="true" default="true"
defaultskinref="_K_081OJ2K0S802H6KB_3I Echo"
objectid="_J_081OJ2K0S802H6KB_36 Admin with left navigation"
resourceroot="AdminLeftNavigation"
uniquename="wps.theme.adminLeftNavigation">

<theme action="update" active="true" default="false"
defaultskinref="_K_081OJ2K0S802H6KB_37 Outline"
objectid="_J_081OJ2K0S802H6KB_3B WebSphere" resourceroot="WebSphere"
uniquename="wps.theme.webSphere">

New

<theme action="update" active="true" default="false"
defaultskinref="_K_081OJ2K0S802H6KB_3I Echo"
objectid="_J_081OJ2K0S802H6KB_36 Admin with left navigation"
resourceroot="AdminLeftNavigation"
uniquename="wps.theme.adminLeftNavigation">

<theme action="update" active="true" default="true"
defaultskinref="_K_081OJ2K0S802H6KB_37 Outline"
objectid="_J_081OJ2K0S802H6KB_3B WebSphere" resourceroot="WebSphere"
uniquename="wps.theme.webSphere">

4) Import the updated configuration file back into Portal

Open a shell and run the following script: -

\WebSphere\PortalServer\bin\xmlaccess -in new_config.xml -user
<wpsadmin> -pwd <wpsadmin> -url <hostname:port>/wps/config

PS Make sure you backup the XML file before you change it, in case things go
wrong.

Hope this helps.

Dave Hay


"scannell" <cscannell@psjohnson.com> wrote in message
news:1024331639.1076861526991.JavaMail.wasadmin@swg3ws006...
> I changed theme of the portal and know I (New page, edit page and

administration links don't show up)how do I get them back. Can anyone help.
And is there a listing somewhere of what the files do what. So if something
like this happens again. I can just refer to the correct file a make the
change in the file.
>
> Thanks a bunch



life is beautiful

2004-02-16, 7:33 pm

run xmlaccess to reset default theme to previous one.

scannell wrote:

> I changed theme of the portal and know I (New page, edit page and
> administration links don't show up)how do I get them back. Can anyone
> help. And is there a listing somewhere of what the files do what. So if
> something like this happens again. I can just refer to the correct file a
> make the change in the file.
>
> Thanks a bunch


Bibhas Bhattacharya

2004-02-17, 1:34 am

The exported file has plenty of problems and does not import (even when
unmodified). Attached is the code for a minimal XML that you can import to
switch the theme to WebSphere.

Bibhas B.

==
<?xml version="1.0" encoding="UTF-8"?>
<request type="update" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="PortalConfig_1.2.xsd">
<portal action="locate">
<theme action="update" active="true" default="false"
defaultskinref="_K_0028NFEG08021HFL_3I Echo"
objectid="_J_0028NFEG08021HFL_36 Admin with left navigation"
resourceroot="AdminLeftNavigation"
uniquename="wps.theme.adminLeftNavigation">
<allowed-skin skin="_K_0028NFEG08021HFL_3I Echo" update="set"/>
</theme>
<theme action="update" active="true" default="true"
defaultskinref="_K_0028NFEG08021HFL_37 Outline"
objectid="_J_0028NFEG08021HFL_3B WebSphere" resourceroot="WebSphere"
uniquename="wps.theme.webSphere">
<allowed-skin skin="_K_0028NFEG08021HFL_35 Shadow"
update="set"/>
<allowed-skin skin="_K_0028NFEG08021HFL_36 Album" update="set"/>
<allowed-skin skin="_K_0028NFEG08021HFL_37 Outline"
update="set"/>
<allowed-skin skin="_K_0028NFEG08021HFL_38 Hint" update="set"/>
<allowed-skin skin="_K_0028NFEG08021HFL_39 NoSkin"
update="set"/>
<allowed-skin skin="_K_0028NFEG08021HFL_3A NoBorder"
update="set"/>
<allowed-skin skin="_K_0028NFEG08021HFL_3B Clear" update="set"/>
<allowed-skin skin="_K_0028NFEG08021HFL_3G Corner"
update="set"/>
<allowed-skin skin="_K_0028NFEG08021HFL_3H Corner - High
Performance" update="set"/>
</theme>
</portal>
<status element="all" result="ok"/>
</request>

==

"Dave Hay" <hayd@hotmail.com> wrote in message
news:c0ogrs$6l04$1@news.boulder.ibm.com...
> Hi
>
> There are two ways around - if you still have the "YourCo Financial" page
> available, you'll find an administration link when you switch to this

page.
> You can then change the default theme to something else i.e. WebSphere.
>
> If not, you can use XMLAccess from a command prompt to export the portal's
> configuration to an XML file which you then modify and re-import (ensuring
> that you make backups along the way). I've done this in past when a

customer
> had made the "Admin with Left Navigation" theme the default and had

removed
> the YourCo Financial page. The process below changes the default theme

from
> "Admin with Left Navigation" back to "WebSphere".
>
> 1) Open a command shell and run the following script: -
>
> \WebSphere\PortalServer\bin\xmlaccess -in
> \WebSphere\PortalServer\doc\xml-samples\Export.xml -out
> backup_config.xml -user <wpsadmin> -pwd <wpsadmin> -url
> <hostname:port>/wps/config
>
> 2) Make a backup of the newly created configuration file before making
> changes - this allows the configuration to be restored if errors occur.
>
> 3) Edit new_config.xml
>
> Use a suitable editor to change the following two definitions: -
>
> Old
>
> <theme action="update" active="true" default="true"
> defaultskinref="_K_081OJ2K0S802H6KB_3I Echo"
> objectid="_J_081OJ2K0S802H6KB_36 Admin with left navigation"
> resourceroot="AdminLeftNavigation"
> uniquename="wps.theme.adminLeftNavigation">
>
> <theme action="update" active="true" default="false"
> defaultskinref="_K_081OJ2K0S802H6KB_37 Outline"
> objectid="_J_081OJ2K0S802H6KB_3B WebSphere" resourceroot="WebSphere"
> uniquename="wps.theme.webSphere">
>
> New
>
> <theme action="update" active="true" default="false"
> defaultskinref="_K_081OJ2K0S802H6KB_3I Echo"
> objectid="_J_081OJ2K0S802H6KB_36 Admin with left navigation"
> resourceroot="AdminLeftNavigation"
> uniquename="wps.theme.adminLeftNavigation">
>
> <theme action="update" active="true" default="true"
> defaultskinref="_K_081OJ2K0S802H6KB_37 Outline"
> objectid="_J_081OJ2K0S802H6KB_3B WebSphere" resourceroot="WebSphere"
> uniquename="wps.theme.webSphere">
>
> 4) Import the updated configuration file back into Portal
>
> Open a shell and run the following script: -
>
> \WebSphere\PortalServer\bin\xmlaccess -in new_config.xml -user
> <wpsadmin> -pwd <wpsadmin> -url <hostname:port>/wps/config
>
> PS Make sure you backup the XML file before you change it, in case things

go
> wrong.
>
> Hope this helps.
>
> Dave Hay
>
>
> "scannell" <cscannell@psjohnson.com> wrote in message
> news:1024331639.1076861526991.JavaMail.wasadmin@swg3ws006...
> administration links don't show up)how do I get them back. Can anyone

help.
> And is there a listing somewhere of what the files do what. So if

something
> like this happens again. I can just refer to the correct file a make the
> change in the file.
>
>




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com