Showing posts with label subsite. Show all posts
Showing posts with label subsite. Show all posts

Wednesday, May 29, 2013

Redirection of a site to another site using Content editor Webpart



Our Client migrated all its sites from MOSS 2007 to SharePoint 2010, and there was a need to redirect users from one site to another in some sites.

·         Edit the page where you would like to include the redirect script
·         Add a Content Editor Web Part on the page
·         Edit the Content Editor Web Part properties , rename the web part to something more meaningful such as, Redirect.
·         Select the Content Editor Web Part Click here to add new content link
·         Locate the HTML icon within the Markup section of the ribbon, select it, and then select Edit HTML Source.
·          Type in (or copy and paste) the code below in the HTML Source web page dialog that displays

<script '"text/javascript"'>//<![CDATA[alert("This site has been moved to another location. You will be redirected momentarily.");//]]></script>
<meta http-equiv="refresh" content="10;url=http://sharepointdirect.blogspot.in/">

·         Select Ok and save the page.
·         The script above is set up to redirect after 10 seconds. You can increase or decrease the time frame.
·         Remember to also replace the URL above with the appropriate destination URL that applies to your particular situation.

Note:  If you are building a web part and is crashing the webpage, here is a quick way to remove it and get the rest of the page working. Add contents=1 to for example, if the page url is http://siteurl/default.aspx then change it to http://siteurl/default.aspx?contents=1 and it will bring up the web part page maintenance page and lists all the web parts that are used in that page and provides way to delete selected web parts , switch view or reset.


Friday, May 25, 2012

How to find out the ID of a site collection .


  1. Open the Central Administration

  2. Application Management

  3. SharePoint Site Management

  4. site collection quotas and locks

Select the appropriate site collection  and you will get the ID of that specific site collection



How to find out the ID of a subsite:

  1. Save the current site as site template[.STP extension]

  2. Save it to disk somewhere.

  3. Now, navigate to that location and rename the file to .CAB extension.

  4. Extract the CAB file and find the manifest.xml file.

  5. Now, in the file check for the site ID/TemplateID string and get the value.

  6. Navigate to end of this post for the TemplateID to Name mapping.



How to find out the List ID:

  1. Navigate to the SharePoint list using the browser.

  2. Select the Settings + List Settings menu command.

  3. Copy the URL from the browser address bar into Notepad. It will look something like:

https://personal.collaborationtools.consumer.citigroup.net/personal/ag14178/_layouts/listedit.aspx?List=%7B47F2F5E2%2D6474%2D4929%2DB986%2D64BBE801C97A%7D



Delete everying before and including “List=”.

Change “%7B” to “{”

Change all “%2D” to “-“

Chnage “%7D” to “}”

You are now left with the Id:



{47F2F5E2-6474-4929-B986-64BBE801C97A}

Tuesday, May 22, 2012

How to create a Subsite in Sharepoint 2010

  •   Click on Site Actions in the Site
  •   Click on "Create a site for a team or project. (New site)

  • Click on Browse all to browse all the site templates available


 
  •    Select the template .  I have selected the Team site template .  Click on more option on the right to add more details 
  •      Fill in all the details as shown in the screen shot 


  •      And then click on create Your site is ready
  •     You can navigate it from the top navigation as well as from the Quick launch as we have selected both the Options


Users cannot see the checked out files in the folder/ library

I Came across a Issue today wherein the user opened a ticket for the below issue Issue : Users cannot see the checked out files in the fo...