User Voices
(Loading...)

DuplexZen: Web Part Page Cloner > Getting Started (DuplexZen config file)

To make DuplexZen work, you first need to customize the configuration file located in the same directory as the executable: PageCloner.exe.config.

This is a standard .NET XML configuration file which you may safely edit in Notepad. Make a back-up first, and be sure not to violate the XML syntax rules. You may want to look for free .NET Configuration File editors if in doubt.

These are the settings you can or need to customize:

Site:
the Site Collection base URL containing the Web Part Page to duplicate.
Default value: http://dualserver

Web:
the site-relative Web Site URL containing the Web Part Page to duplicate.
Default value: /

Folder:
the name of the Document Library containing the Web Part Page to duplicate.
Default value: Shared Documents

Extension:
the file extension of the Web Part Page to duplicate.
Default value: .aspx

ListView_ToolBar:
the default Toolbar setting to apply to cloned List View Web Parts.
Default value: Freeform. See MSDN for valid values.

ListView_Where:
the CAML to set to the View associated with List View Web Parts.
Default value should be changed or cleared.

Elevate:
Whether to SPSecurity.RunWithElevatedPrivileges, i.e. run with application pool account privileges.
Default value: True

There are other settings but you should be able to get up and running with those initially. You can also find-and-replace Web Part settings while duplicating from a source to a target Web Part Page.

Post here for any questions!

April 28, 2009 at 17:14 | Registered CommenterROXORITY

What shoulkd be the "ListView_ToolBar" value please give an examples
same for ListView_Where.
I've spend some time but didn't managed to get it to work.

August 2, 2009 at 20:18 | Unregistered CommenterA user

"ListView_ToolBar" can be "Standard" or "FreeForm", corresponding to:
CAML View Schema: Toolbar Element (MSDN)

"ListView_Where" is XML to specify filtering and/or sorting defaults, corresponding to: CAML Query Schema: Toolbar Element (MSDN)

August 3, 2009 at 4:29 | Registered CommenterROXORITY

I was wondering if you had a more comprehensive guide to how to set this up? What is the pagecloner.exe for? I tried to install but have had no luck so far

March 25, 2010 at 2:28 | Unregistered CommenterDan

PageCloner.exe IS the tool that this sub-site ("DuplexZen") is all about. It is the Web Part page cloner. Before you can make it work to do what you need it to do, you'll need to customize its config file (PageCloner.exe.config) as described and documented on the top of this topic.

March 25, 2010 at 2:36 | Registered CommenterROXORITY

Is the actual cloning of pages not done through sharepoint in the browser then? What is the dll for then?

March 25, 2010 at 3:42 | Unregistered CommenterDan

Correct. It's not done inside the browser but directly by this EXE tool, and there is no accompanying DLL.

For background --- this is a free helper utility that once served its purpose in one of our projects and was made available here. If it works for you, great --- if not, well let us know! =)

March 25, 2010 at 3:46 | Registered CommenterROXORITY

Thanks, I'll keep working with it to see if it will meet my needs. However, that's where I might have been getting confused. There is a de folder with a dll in there

March 25, 2010 at 3:50 | Unregistered CommenterDan

Hello, I get the following error message when I run PageCloner.exe:

An exception 'System.IO.FileNotFoundException' has occurred in PageCloner.exe

How can I get past this error? What am I doing wrong?
Should I be running this thing on the same server that the MOSS is installed? Or can I run it from my own desktop PC, which is not that server?

June 18, 2010 at 23:27 | Unregistered CommenterSanjay

Absolutely, this tool only works when run directly on the server.

June 18, 2010 at 23:39 | Registered CommenterROXORITY

Okay, so I realized that I needed to be running this on the MOSS server itself, and I did that. I then got the following message after I typed in the name of the webpart page I was trying to clone:

> Source file could NOT be cloned.

So what is the problem now? Is there something wrong with the page I was trying to clone? The original page seems to work fine, in the same usual way. Is it a security issue? Should I have included a destination folder when typing in the target name?

Further help would be appreciated.

June 18, 2010 at 23:44 | Unregistered CommenterSanjay

Hi Sanjay,

I should explain that this free tool is extremely niche --- your best bet is to experimentally see how far you get with the docs and tutorials in this forum. We can't better support the tool since almost no-one is using it and we ourselves haven't used it in years by now. It did its job just fine for a very specific project, it then later on helped a few further users who "somehow figured it out" and since demand and usage is so low we can't afford to invest in its further development or even documentation at the expense of the many licensees and users of our other offerings.

So good luck with your cloning and best regards!

June 18, 2010 at 23:56 | Registered CommenterROXORITY

Hmm, is there any way to get a copy of the source, so that I could run this in debug mode? Otherwise, I don't know how I'm going to get it to work. Sharepoint is so frustrating! Who the heck would build a content management system that is completely unable to copy/clone webpages, just because they happen to contain webparts! How the heck is someone supposed to develop anything on Sharepoint, if they're not even able to copy pages conveniently!

June 19, 2010 at 1:42 | Unregistered CommenterSanjay

Okay, I found a really simple solution just now by playing around, that seems to meet my needs. Just right-click on the page in Sharepoint Designer, and "detach from layout". This then puts all the content markup explicitly in the page, and you can then copy/move it anywhere with ease. I suppose you might have to careful if you decide to re-attach it to layout, but for my purposes I don't care about doing this. So this seems to work fine for me.

June 19, 2010 at 2:37 | Unregistered CommenterSanjay

I did not see an option for target site, target web and target folder or document library in the config file where i want this newly cloned web part page to be. Did i miss it?

August 27, 2010 at 12:37 | Unregistered CommenterSanjay