CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 10/6/2004 2:55:29 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 8 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
14 Items, 1 Pages 1 |< << Go >> >|
objecta
Asp.Net User
New Module "ClonePortal" availible10/6/2004 2:55:29 PM

0/0

ClonePortal will Clone
- All tabs from another Portal on the same database
- All Modules on those tabs
- All contents from Core Modules on those tabs
- All Dir/Files from the portal being cloned from.
- All Users & Roles
- Content from all other modules, supporting a CloneContent method.

When the clone page opens, you must select the Portal to clone from and the Portal to clone to.

- Host login
The host account can select from all portals as the source. By default the Current Portal is selected as the source.

- Admin login
The admin login can Clone all WebSites/Portals he/she is related to (Administrating). The WebSite/Portal to clone from will always be the current portal.

When you select the WebSite/Portal to clone to a list of all modules on the selected portal will be shown. In this list you can select the modules that you want to copy content from.

It is possible to copy all users and Roles. But in DNN 2.1.2 it is no longer possible to clone a user, so only roles can be copied.

You can select to copy all files and images from a portal; this is relevant if you also clone content to make sure you get all images copied too.

The following Core modules and there content can be cloned
- Documents
- FAQ
- Announcements
- Events
- Text/HTML
- Contacts
- Links
- Discussion

NOTE. Be sure to have emptied the Recycle bin on the portal being cloned to, before cloning. Deleted modules and tabs will be treated as tabs or modules already there if they are still in the recycle bin.

- How to Clone Content from all other modules?
It's possible to clone content from modules other then Core modules, if the module implement a method called ClonContent. Then CloneContent method will be called during cloning process and will receive 4 parameters newPortalID, oldPortalID, newModuleID, oldModuleId. These parameters can be used by the module developer to clone content related to their module. One example could be cloning content for the Events module.

Public Sub CloneContent(ByVal newPortalID As Integer, ByVal oldPortalID As Integer, ByVal newModuleID As Integer, ByVal oldModuleId As Integer)
Dim evtCont As New EventController
Dim evtInfos As ArrayList
Dim evtInfo As EventInfo

evtInfos = evtCont.GetModuleEvents(oldModuleId, Now.AddYears(-1), Now)
For Each evtInfo In evtInfos
evtInfo.ModuleId = newModuleID
evtCont.AddModuleEvent(evtInfo)
Next

End Sub

The CloneContent() method for the events example could be placed in either the EditEvents.ascx, EditEventsViewOptions.ascx or Events.ascx, but only in one of them, and should be defined as public.

Can be downloaded from here http://www.objecta.dk/Default.aspx?tabid=57

Objecta
www.objecta.dk
DBuckner
Asp.Net User
Re: New Module "ClonePortal" availible10/7/2004 4:24:43 AM

0/0

I love it! Thank you!!!!

"You can select to copy all files and images from a portal"

I found a slight problem with this. All my sub folders, skins, containers, TTTGallery, etc & it's children all all placed in the portal root.

Thanks again,
Dave
objecta
Asp.Net User
Re: New Module "ClonePortal" availible10/7/2004 5:42:00 AM

0/0

By default all dir and files will be copied from the "Portals" folder. If You use file manager to upload new images or other files they will be placed in the Portals folder under the portal number folder. So that's why it's done this way.

How do you define where all files are placed if they are not placed in the default folder?.

I could change the code so it would be possible to provide an alternative source and destination folder. But I think this will interfere with the way the size is calculated and controlled for each portal.

Objecta

www.objecta.dk
DBuckner
Asp.Net User
Re: New Module "ClonePortal" availible10/7/2004 6:43:55 AM

0/0

<snip>How do you define where all files are placed if they are not placed in the default folder?. </snip>

Other modules define this. For instance TTTGallery creates a folder under the root portal e.g. Portals/1/TTTGallery I also have a module that does something simular to this as there are others also. Peter's fine MHTML module, Steve's Repository, etc.

<snip>I could change the code so it would be possible to provide an alternative source and destination folder. But I think this will interfere with the way the size is calculated and controlled for each portal.</snip>

It would be appreciated! You are correct, the size does not calculate children currently. This looks to be changing in 2.2 though. See this view post 705342


Thanks again!
Dave
objecta
Asp.Net User
Re: New Module "ClonePortal" availible10/7/2004 6:56:27 AM

0/0

ClonePortal has manage to clone foldes and files located like this:

Portals\0\StoreImages\thumbnails

It looks like it is located the same way as TTTGallery or I'm I mistaking ?

Objecta


www.objecta.dk
lou
Asp.Net User
Re: New Module "ClonePortal" availible10/7/2004 7:04:10 AM

0/0

It cloned my Initial Portal, not the one I selected. It did put it in the correct target. It didn't clone/copy the skin.
DBuckner
Asp.Net User
Re: New Module "ClonePortal" availible10/7/2004 7:28:20 AM

0/0

Objecta,

Yes, it looks that way to me also. It took all my child folders and tossed them in the root. Skins/Containers also. If I go into these folders now they are bare. To help clairify I am hitting this in a virtual directory as Http://localhost/DNNSQL The target I am cloning to is a Child ... Http://localhost/DNNSQL/Clone

Dave
objecta
Asp.Net User
Re: New Module "ClonePortal" availible10/7/2004 9:48:06 AM

0/0

ClonePortal don't clone the skins only the items described in the help.txt files.

Objecta
www.objecta.dk
objecta
Asp.Net User
Re: New Module "ClonePortal" availible10/7/2004 11:10:03 AM

0/0

There is an error in the code copying the images and files, causing all child folders to be created in the root. I'm working on fixing this now.

Also I'm making changes in the list that show all the modules on the portal being cloned, so deleted modules/tabs don't show in the list.

Objecta


www.objecta.dk
objecta
Asp.Net User
Re: New Module "ClonePortal" availible10/7/2004 12:25:26 PM

0/0

An updated Version of ClonePortal is ready for download

- Fixed copy of folder and files, child folders/files is now created at the right level.
- The modules content selections no longer shows modules that?s deleted (Recycle bin).
- Added logging
- Added file Synchronize when Files is copied/cloned.

Download from here: http://www.objecta.dk/Default.aspx?tabid=57

Objecta

www.objecta.dk
DBuckner
Asp.Net User
Re: New Module "ClonePortal" availible10/8/2004 4:20:09 AM

0/0

Objecta,

That problem is solved for me now, thank you!! I did notice though there are 2 recycle bin's in any portal that you clone though.

Thanks,
Dave
objecta
Asp.Net User
Re: New Module "ClonePortal" availible10/8/2004 6:53:04 AM

0/0

Yes this is very strange, I have not been able to figure that one out Yet, but still working on it.
I would exspect more that the Recyle Bin to duplicated if there was an error, but it's only that one

hmmm

Objecta
www.objecta.dk
clydebaxter
Asp.Net User
Re: New Module "ClonePortal" availible11/13/2004 11:14:32 PM

0/0

Source code for ClonePortal is now availible at http://www.objecta.dk/Default.aspx?tabid=57

This is not my module but Klause at Objecta was nice enough to post it for free at my request. .

So far it seems to work really good; copying/cloning all my tabs and users and ruser roles and modules into a new portal, even the non-core aftermarket modules, very impressive.

Please people post it back as open source with improvements or as a low cost module we all need it. I just can't afford to buy anymore high cost modules.
Thanks





R-a-g-n-o-s
Asp.Net User
Re: New Module "ClonePortal" availible11/15/2004 8:11:33 AM

0/0

Got this error:

"Could not load type DotNetNuke.Logging.EventLogController from assembly DotNetNuke, Version=2.0.4.19154, Culture=neutral, PublicKeyToken=null."

does this mean that i cannot use it with my version of DNN?
14 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Copying a DNN Portal - ASP.NET Forums Source code for ClonePortal is now availible at http://www.objecta.dk/Default. aspx?tabid=57 This is not my module but Klause at Objecta was ...
ESHA - European School Headmasters Association - Impressum More informations, support and all necessary downloads are available at .... editor: A.Ellsel, (http://www.cloneportal.de) based on phpNuke5.5 Links-Module ...
Troubleshooting the install 0509-136 Symbol listio (number 1) is not exported from dependent module /unix. ... set STATE to be configured at system restart from defined to available. ...
MonoX - About MonoX These designs are available free of charge to all registered users of MonoX portal engine. You can use them instantly by clicking on a Portal - Clone portal ...
Google Groups : ibm.software.websphere.portal-server Unable to create new server of the kind "Websphere Portal V5.1 for Import, ... Re: Object stored that is available to all portlets on portal server ...
ASP Projects comWe would like to go for the readymade solution if any thing available. ..... will be in deferrent module.they can post news letter,stude Full details ...
Freelancers Projects List :: getafreelancer comWe would like to go for the readymade solution if any thing available. ... gift coupon in payment module for AE Dating 4.1.0004 by kruemelg (927 days ago ...
pragmaMx.org - Downloads: pragmaMx Module, Addons & Zubehör Among other things now the following new features are available: ... Seite: http ://www.cloneportal.de/modules.php?name=Downloads&d_op=viewdownload&cid=1 ...
schütz engineering - Impressum More informations, support and all necessary downloads are available at pragmaMx .org ... editor: A.Ellsel, (http://www.cloneportal.de) Version: 2.1.9 ...
This is the Heading Clone Portal Server on Site B. Before you begin this section, please review these two excellent guides for. cloning Portal Server available on the web: ...




Search This Site:










upload page option buttons

dotnetnuke and community server

login lost after short time

windows password prompt rather than redirecting to login form

datagrid issues,.. li'l help, li'l help,...

accessing httpcontext.current in custom membershipprovider

migrating php to asp.net (vb.net)

do i need disconnect the database connection when using daab

sql server service pack 4

usersonline 1.2 problem

language used in the site

problems after 3.1.1 upgrade - please help!

dnn 3.0.5 clientapi - expand/collapse

could someone recommend a good dedicated hosting provider

can't update field password ?

error when running ibuyspy portal

treeview questions.

feature request: don't ask for my password for x

asp.net, dotnetnuke and ssl question

what is the use of this number in stack trace if any exceoption comes

can't see form in design mode

help with xml and treeview control

help: syndication issue, anyone??

[2.0] mono support

server.transfer with master page

password reminder is spam generator?

parsing error - would be grateful for someone's help!

validaterequest=false issues

css menu friendly adapter and target = blank

publishing with web developer express 2005 beta 1

 
All Times Are GMT