Changing a Site Collection URL SharePoint 2007

1. Backup the content database.
2. Backup the snap if its a virtual machine.
3. Lock the site.
Do not restart the web server after locking site. If you restart the server the site will be locked for everybody. You unlock by using step 7 and then do step 3 again.

At a command prompt on the drive on which SharePoint Products and Technologies is installed, change to the following directory: COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.

To determine the current access level of the site, type the following command, and then press ENTER:

stsadm -o getsitelock -url

where URL name is the URL of the site collection that you want to back up.
If the current access level allows changes to the site content, change it to read-only by typing the following command, and then pressing ENTER:

stsadm -o setsitelock -url -lock readonly

where URL name is the URL of the site collection that you want to back up. For more information, see Setsitelock: Stsadm operation (Office SharePoint Server).
When the backup is complete, use this procedure to return access to the site collection to the original setting determined in step 1.

4. Backup the site collection.
On the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin. Type the following command:

stsadm -o backup -url -filename [-overwrite]

where URL name is the URL of the site collection that you want to back up, and where \\server name\folder name\file name is the UNC path of the backup folder and the name of the file that you are backing up to. If there is an existing file for the backup, use the -overwrite parameter to overwrite the existing file.

If the backup is completed successfully, the Command Prompt window displays the following text:”Operation completed successfully.”

If the backup is not completed successfully, the Command Prompt window provides additional details about the failure. Most typically, an incorrect URL or file name was given.

5. Delete the site collection.
6. Restore the dat file.
To restore a site collection, type the following command, and then press ENTER:

stsadm -o restore -url -filename

where URL name is the URL of the site collection that you want to restore and UNC path is the UNC path of the backup shared folder.
When you receive a warning that all selected items will be overwritten, type y, and then press ENTER.
When prompted, type the user name and password for the Web application and content databases.

If the recovery is completed successfully, the Command Prompt window displays the following text:”Operation completed successfully.”
If the recovery is not completed successfully, the Command Prompt window provides additional details about the failure. Most typically, an incorrect URL or file name was given

7. Unlock the site.
To determine the current access level of the site, type the following command, and then press ENTER:

stsadm -o getsitelock -url

where URL name is the URL of the site collection that you want to back up. For more information, see Getsitelock: Stsadm operation (Office SharePoint Server).

If the current access level is too restrictive, change it by typing the following command, and then pressing ENTER:

stsadm -o setsitelock -url -lock none

where URL name is the URL of the site collection that you want to back up and Access Level is the site lock setting the site had before being backed up. For more information, see Setsitelock: Stsadm operation (Office SharePoint Server).

Reference:
http://technet.microsoft.com/en-us/library/cc706871.aspx
http://blogs.technet.com/josebda/archive/2006/10/03/Renaming-a-Site-Collection.aspx

SharePoint 2007 Accessibility

http://www.21apps.com/sharepoint/sharepoint-accessibility-is-moss-2007-accessible/

Tools
1. Install FireFox and the following addons
HTML Validator – https://addons.mozilla.org/en-US/firefox/addon/249
CSS Validator – https://addons.mozilla.org/en-US/firefox/addon/2289
Web Accessibility Tester – https://addons.mozilla.org/en-US/firefox/search?q=taw3&cat=all

What Doctype to use?
http://www.sharepointblogs.com/tmt/archive/2008/01/22/which-doctype-to-use-with-sharepoint-2007.aspx
http://www.w3.org/QA/2002/04/valid-dtd-list.html

MOSS Accessibility Kit
https://aks.hisoftware.com/default.aspx

Accessibility Whitepapers
http://go.microsoft.com/fwlink/?LinkId=121877
Also register and download AKS whitepaper from https://aks.hisoftware.com/Resources/Lists/WhitePapers/AllItems.aspx

White paper for Delivering Accessible Solutions using
Microsoft Office SharePoint Server 2007

Reference site:
http://www.heathersolomon.com/blog/articles/BaseMasterPages.aspx

Site done using Div
http://www.worleyparsons.com/AboutUs/Pages/default.aspx

How to add different PublishingWebControls:RichHtmlField in the same page layout?

1. Find the ‘content type name’ of the page layout.

2. In the browser, do one of the following:
- From any team site, on the Site Actions menu, click Site Settings.
- From any portal area, click Site Actions, point to Site Settings, and then click Modify All Site Settings.

3. On the Site Settings page, under Site Collection Administration, click Go to top level site settings.
- Alternatively, you can browse directly to http://your_top_level_site/_layouts/settings.aspx, where your_top_level_site is
- the URL for your root site, such as fabrikamweb for the http://fabrikamweb site.
- To see list of fields available http://your_site/_layouts/mngfield.aspx

4. Under Galleries, click Site content types.

5. Click on the ‘content type’ you want to add extra fields.

SiteContentTypeGallery

SiteContentTypeGallery

6. Click ‘Add from new site column’ link on botton and add as many extra column with Type ‘Publishing HTML’ as required.

ContentTypeWelcomePage

ContentTypeWelcomePage


7. When prompt to select a group select ‘Page Layout Columns’. To make your new content type available for page layouts that you create or customize in Office SharePoint Designer 2007, put the content type in the Page Layout Content Types group, where it will be easy to locate.

8. Go to SP Designer and then refresh link under ‘Content Field’ under Toolbox tab on right.

SharePoint Designer Content Field

SharePoint Designer Content Field

9. Now you can drag and drop the new ‘Content Fields’ in your page layout.

Reference:
http://office.microsoft.com/en-us/sharepointdesigner/HA101741281033.aspx#3

Follow

Get every new post delivered to your Inbox.

Join 116 other followers