restore a deleted container

I have Portal server setup and playing around the three out-of-box samples (Enterprise, Developers, and Community).

I have deleted the PagePreferencesContainer from Community sample. I cannot add it back by adding new channel/container in admin console. Is any way to have it back?

I know the pbfiles source is here. How can I deploy this container back from source? or is any other simpler way to restore it?

Thanks in advanced.

Jeff

[465 byte] By [JeffreyKoa] at [2007-11-27 6:01:17]
# 1

The xmls which are used to deploy the community sample are placed here:

/opt/sun/portal/par-src/community_sample

You could add the xmls to the desktop profile using the psadmin command.

Or

1) go to "Portals" -> "Your portal" and "Download Display Profile"

2) COPY THE DOWNLOADED FILE(!)

3) Edit the copy and add the following xml fragment before the following line:

<Channel name="Login" provider="JSPProvider">

-

<Container name="PagePreferencesContainer" provider="JSPSingleContainerProvider">

<Properties>

<ConditionalProperties condition="locale" value="de">

<String name="title" value="Seiteninhalt &#38; -layout"/>

<String name="description" value="Klicken Sie hier, um den Inhalt und das Layout dieser Seite zu bearbeiten."/>

<String name="helpURL" value="/community/content/de/Help/index.html"/>

</ConditionalProperties>

<ConditionalProperties condition="locale" value="fr">

<String name="title" value="Contenu de la page et pr閟entation"/>

<String name="description" value="Cliquez ici pour 閐iter le contenu et la pr閟entation de cette page"/>

<String name="helpURL" value="/community/content/fr/Help/index.html"/>

</ConditionalProperties>

<ConditionalProperties condition="locale" value="es">

<String name="title" value="Contenido y dise駉 de p醙ina"/>

<String name="description" value="Haga clic para editar el contenido y el dise駉 de esta p醙ina"/>

<String name="helpURL" value="/community/content/es/Help/index.html"/>

</ConditionalProperties>

<String name="title" value="Page Content &#38; Layout"/>

<String name="description" value="Click to edit content and layout for this page"/>

<String name="helpURL" value="/community/content/Help/index.html"/>

<String name="contentPage" value="content.jsp"/>

<String name="processPage" value="process.jsp"/>

<ConditionalProperties condition="locale" value="en">

<String name="title" value="Page Content &#38; Layout"/>

<String name="description" value="Click to edit content and layout for this page"/>

<String name="helpURL" value="/community/content/Help/index.html"/>

</ConditionalProperties>

</Properties>

<Available>

</Available>

<Selected>

</Selected>

<Channels>

</Channels>

</Container>

-

It is not complete, I have removed japanes/korean/... properties because I could not copy them easily.

4) "Upload Display Profile"

hth Chris

CRabela at 2007-7-12 16:40:53 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2

In Developer Sample there is no such PagePreferences link on the UI. I tried to create such a new container but there's no such PagePreferencesContainer in the drop down list for me to choose at psconsole.

My question is how do I add such personal configuration page

1.) to my own portal

2.) to Developer Sample

Best regards,

Jeffrey

JeffreyKoa at 2007-7-12 16:40:53 > top of Java-index,Web & Directory Servers,Portal Servers...