There are many ways to redirect a page in SharePoint. If you have a Publishing Site then you have a built in feature using Create Page – Redirect Page page layouts.
If you don’t you can still add a Content Editor Web Part to your page and in the Source button add:
<meta http-equiv="refresh" content="1;url=http://LindaChapman.BlogSpot.com/NewPage.aspx">
If you want to display a message for them to see then add that text first and change the value of content=”1 to a higher number of seconds to wait before redirecting.
I usually just change the Title of my content editor web part to have the message I want and keep it at 1 second.
Hi Linda,
ReplyDeleteI'v used the the CEWP for redirection purpose. However, when the time interval is 1 sec and there are no messages, the redirection is quick and I cannot edit the CEWP now. Is there a way to edit the CEWP when the value of content was specfied as 1.
Thanks
Arut
Arut: What I do is add ?contents=1 to the URL of your page, then on the maintenance page click the check box next to the CEWP and select CLOSE. Then go back to the page and Edit Page - click the Add Web Part bar, then in the lower right hand corner of the popup window and click ADVANCED hyperlink. Then up in the upper right hand corner of the right pane click on CLOSED WEB PARTS, click on the CEWP then scroll down in the right pane to click "Add to: Bottom" click Add. Then at that point you are still in edit mode so you can click to Modify your settings of the web part.
ReplyDeleteThanks Linda.....This information did help me a lot.
ReplyDeleteBetter yet, point the CEWP to a .txt file stored in a Doc Library and then all you have to do is modify that txt file when you want to update the script. It's much easier that way.
ReplyDelete@iOnline247: Yes, many times I will put my CEWP contents in a file in a document library and point the CEWP to that file. Honestly I don't know which way I prefer. I tend to forget when I put CEWP content in a DL. Thanks for mentioning it.
ReplyDeleteHi Linda,
ReplyDeleteHow to redirect to another page in sharepoint 2010. In SharePoint 2010 there is no Redirect Page page layouts and Content Editor Web Part does not have Source Button.
Thank you,
Dmytro Dobei
In 2010 if you click in your Content Editor Web Part if you then look up in the Ribbon there is a HTML button in the bottom center/right of the Ribbon. You would add the HTML by clicking that.
ReplyDelete