WebSphere Portal Server - how to change page to the default layout

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > May 2007 > how to change page to the default layout





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 how to change page to the default layout

2006-09-12, 1:29 pm

in my project, my customer has a requirement like this:a user can change a page's layout ,and we should apply a button ,when the user click the button ,the page will return to the default layout ,is there anyone know how to make it?

2006-09-16, 1:48 pm

By layout u mean changing nos of columns in the page?
If yes then look in portal spi docs located in \Porta\Server\doc\javadoc\spi.
The package com.ibm.portal.content contains some valuable info for ur prob.

2006-09-16, 1:48 pm

no, it's not what i meant.
let me describe the scenario for u:
the portal administrator creates a page named "CompanyPage", and fills four portlets in it;a common user login portal ,and delete two portlets, then sometime he wants the page return to the default situation.
what my customer needs is just this,he wants us apply a button in the page,so the common user can easily return the page to the default situation by clicking it.

2007-05-04, 1:21 pm

Is there an answer to this?
David Wilkerson

2007-05-04, 7:19 pm

So... do you mean a user with "priviledged user" role has modified (personalized) the page? If so, do you mean to "revert" to the page ( a non derived page ) as if she / he had never personalized it?

Hmmmm, interesting. In essence your user needs to delete their page.


--While I breathe I hope.
http://www.geedavid.com

For some of the best WebSphere Portal (including WebSphere Portlet Factory), Lotus Domino, Web Content Management and Workplace training see http://www.davalen.com

2007-05-04, 7:19 pm

In my case, I want any "personalizing" of the page to be removed and to revert to the defaults set by the Administrator.

Something along the lines of: http://www-128.ibm.com/developerwor...0611_koeth.html . This talks about using the PortletPreferences.reset(...) method.

2007-05-07, 1:22 pm

I found it!! In my case, this works under 6.0.1.0 and not 6.0.0.0

wpscript.bat -user <portal admin username> -password <portal admin password>
$Portal login "<cn of user you want to change>"
$Content find any uniquename "<page id or custom unique name>" select
$Content deletecustomization

The content I needed came from: http://publib.boulder.ibm.com/infoc...
%63%63%6

5%73%73%22%20%22%70%72%65%66%65%72%65%6e
%63%65%73%22%20%22%70%72%65%66%65%72%22%
20

-Brooke
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com