none
Update the url in a Sharepoint page programmatically RRS feed

  • Question

  • Hi,

    We have to update the url to another site that is used across the Sharepoint site, the url can be embedded in the content of a page, or in a webpart. Is doing it programmatically easy enough? If so, how can this be done?

    Please advice, your help would be greatly appreciated!

    Monday, September 29, 2014 1:07 PM

Answers

  • I dont think it can be done so easily. Try below:

    http://sharepoint.stackexchange.com/questions/33827/can-i-edit-a-publishing-page-using-powershell

    http://social.technet.microsoft.com/Forums/en-US/a38f6352-e7b1-44f3-9d9d-60e250372f2e/powershell-script-modify-urls


    If this helped you resolve your issue, please mark it Answered

    Tuesday, September 30, 2014 5:13 AM
    Moderator

All replies

  • Hi,

    if I understood, SPUtility.Redirect can help you

    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.sputility.redirect%28v=office.15%29.aspx

    Regards.

    Mark as answer if this help you.

    Monday, September 29, 2014 1:11 PM
  • You can use powershell to update URL in content editor webpart

    http://webcache.googleusercontent.com/search?q=cache:DQ6ce4ieQxMJ:blog.metrostarsystems.com/2011/09/20/using-powershell-to-update-content-editor-web-parts/+&cd=2&hl=en&ct=clnk&gl=in


    If this helped you resolve your issue, please mark it Answered

    Monday, September 29, 2014 1:13 PM
    Moderator
  • Thanks, is there a way to update the page content of a publishing page? That is where most of the urls are.

    Thanks again.

    Monday, September 29, 2014 2:10 PM
  • I dont think it can be done so easily. Try below:

    http://sharepoint.stackexchange.com/questions/33827/can-i-edit-a-publishing-page-using-powershell

    http://social.technet.microsoft.com/Forums/en-US/a38f6352-e7b1-44f3-9d9d-60e250372f2e/powershell-script-modify-urls


    If this helped you resolve your issue, please mark it Answered

    Tuesday, September 30, 2014 5:13 AM
    Moderator