WebSphere Portal Server - To create portal pages using xml access scripts

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > June 2007 > To create portal pages using xml access scripts





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 To create portal pages using xml access scripts

2007-06-12, 7:22 am

hi,

When ever i deploy a new portal project,The portal pages in the other portals
vanish.I need to create the portal pages for all of them automatically using XML access script instead of adding portlets manually.
Can anyone help me out to solve this problem.
RuneH

2007-06-12, 7:22 am

You create your pages with portlets in "original" portal, then by using the admin console you choose "export". Click yes for the whole hierarchy. Then you need to edit the xml-file, or at least I prefer to change the object-id's to something that is easie
r to read --> Unique names. You will quite soon learn that it is an advantage to use unique names on all your elements in the portal (pages, themes, skins, portlets, webapps and so).

But, to learn xml access it is best to start with just a simple page with just one portlet. Try to export it and then import it on another portal, then move on to the whole page hierachy.

You find all you need at http://publib.boulder.ibm.com/infoc...s/admxmlai.html

R.
****************************************
**********
Rune Hellem http://hellem.org

2007-06-12, 7:22 am

thanks for the help.It found to be very useful.

2007-06-12, 1:25 pm

I've started doing just this on my own portals (both v6), but how do you set custom unique names for themes and skins?

I've been adding themes and skins via the portal web admin interface, but there is no interface for setting unique names for these.
RuneH

2007-06-12, 1:25 pm

Themes and skins are the only thing which is not possible to set unique name for by using the admin console. The way I do it: Deploy the theme and skin by using the admin console, if you have deployed a skin also, set your theme to use ONLY that skin. Cre
ate a test page and assign your theme to that page, then export it. You will then find the object id for your theme and skin. You can then run a script like this one

<?xml version="1.0" encoding="UTF-8"?>
<request
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd"
type="update">

<portal action="locate">
<theme action="update" domain="rel" objectid="J_8000CB1A08TPD029KCN0OM1000" uniquename="mycomp.theme.mytheme" />
</portal>
</request>

Rune
****************************************
**********
Rune Hellem http://hellem.org
RuneH

2007-06-18, 1:27 pm

Or even better, check out
http://publib.boulder.ibm.com/infoc...s/admxmsmp.html
and DeployTheme.xml
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com