You are right Clayton, that's a better way to do it. It's better to make use of features do the work, or you can change individual settings in the existing site with object model code, write a console app to modify specific site settings with code that you can't modify with the sharepoint UI or sharepoint designer.
It really depends on what you are specifically trying to do. Import/export manually would also lose revisions and create/update user information and create/update times which is not good, and not an option in most cases. Sezai Kömür Senior Developer - BEng, BSc - Microsoft Certified Technology Specialist - http://www.moss2007.com.au/ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Clayton James Sent: Thursday, 7 February 2008 2:01 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] custom site definition question In your scenario proposed Sezai I might be inclined to instead use Features to make changes to existing sites and update the site definition with a Feature reference for new sites created from the site definition. 1/ Create a Feature to add the new functionality to existing sites and deploy. 2/ Add the Feature reference (GUID) to the ONET.XML file so all new sites created from the site definition will have the new functionality. This would eliminate on the import/export process. CJ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sezai KOMUR Sent: Thursday, 07 February 2008 02:29 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] custom site definition question ONET.xml is used for PROVISIONING new sites, but if the site definition contains .aspx files then these are actually read from the file system every time (unless customised) Changes in ONET.xml are read from the XML file the next time you create a site. So you are stuck if you want your existing site to make use of changes in ONET.xml. You will need to 'magically' export out the content from your existing site, then re-create the site (provision a new site) using the updated site definition, then 'magically' re-import it in. 'magically' - using a custom built or third party content import/export tool Sezai Kömür Senior Developer - BEng, BSc - Microsoft Certified Technology Specialist - http://www.moss2007.com.au/ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Clayton James Sent: Thursday, 7 February 2008 1:18 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] custom site definition question Site Definition ONET.xml Changes to the Site Definitions ONET.XML file won't be reflected in sites that have previously been created. Changes will only be reflected only when you create new sites. Site Definition .aspx pages modified using notepad or VS.Net If these pages are modified with notepad or VS.net (not SPD) and existing sites haven't customised these pages using SPD then yes existing sites will take on these changes. Site Definition .aspx pages modified using SPD If the .aspx pages have been customised using SPD then they are stored in the content database so changes to the original files on file system won't change existing sites. Cheers CJ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ishai Sagi Sent: Thursday, 07 February 2008 01:53 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] custom site definition question Depends what changes...changes to aspx pages will affect the existing ones. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hodges, Kristen Sent: Thursday, 7 February 2008 2:43 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] custom site definition question Sadly no it won't pick up the changes automatically... but you can force it to reset to the Site Definition on a per site basis in site settings. This is MOSS 2007 I'm talking about here of course. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Saikovski Sent: Thursday, 7 February 2008 2:41 PM To: listserver@ozMOSS.com Subject: [OzMOSS] custom site definition question Dear All, I am having a mental blank at the moment and I can't remember for the life of me how this works. If I create a custom site definition, create a new site based on that definition, make changes to the original site definition. Will the changes be reflected in my sites based on that definition, or do I need to recreate the sites? Can you refresh my memory. Cheers, Aaron ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.20/1261 - Release Date: 05/02/2008 08:57 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.20/1261 - Release Date: 05/02/2008 08:57 PM ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.20/1261 - Release Date: 05/02/2008 08:57 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.20/1261 - Release Date: 05/02/2008 08:57 PM ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net