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