To create portal pages using xml access scripts
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > To create portal pages using xml access scripts




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    To create portal pages using xml access scripts  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-12-07 12:22 PM

hi,

When ever i deploy a new portal project,The portal pages in the other portal
s
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.





[ Post a follow-up to this message ]



    Re: To create portal pages using xml access scripts  
RuneH


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-12-07 12:22 PM

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 y
ou 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 advantag
e to use unique names on all your elements in the portal (pages, themes, ski
ns, portlets, webapps and so).

But, to learn xml access it is best to start with just a simple page with ju
st 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





[ Post a follow-up to this message ]



    Re: To create portal pages using xml access scripts  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-12-07 12:22 PM

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





[ Post a follow-up to this message ]



    Re: To create portal pages using xml access scripts  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-12-07 06: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 th
ere is no interface for setting unique names for these.





[ Post a follow-up to this message ]



    Re: To create portal pages using xml access scripts  
RuneH


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-12-07 06: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





[ Post a follow-up to this message ]



    Re: To create portal pages using xml access scripts  
RuneH


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-18-07 06:27 PM

Or even better, check out
http://publib.boulder.ibm.com/infoc...>
dmxmsmp.html
and DeployTheme.xml





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:13 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register