Find theme in Portal using JACL

This is the WebSphere Portal script that we use to check if a particular page has the proper theme or not.

There is also a script to apply a theme to a page. We use XMLAccess to apply the theme but I think a JACL script can also do that.

Check what theme has been applied to a particular Portal page using JACL :

sh wpscript.sh -user portaluser -password portalpassword

WASX7209I: Connected to process "WebSphere_Portal" on node Node1 using SOAP
connector; The type of process is: ManagedProcess

WASX7029I: For help, enter: "$Help help"

wsadmin>$Portal login portaluser portalpassword

logged in as "uid=uid,cn=users,dc=company,dc=com"

wsadmin>$Content find page uniquename "wps.My Portal" select
6_F0QPNQO200SAD02178PJP91042

wsadmin>$Content get 6_F0QPNQO200SAD02178PJP91042 themename
AppliedThemeName

So AppliedThemeName is the theme applied to wps.My Portal

add to del.icio.us : Add to Blinkslist : add to furl : Digg it : add to ma.gnolia : Stumble It! : add to simpy : seed the vine : : : TailRank : post to facebook

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: