{"id":1372,"date":"2012-09-04T12:28:38","date_gmt":"2012-09-04T12:28:38","guid":{"rendered":"https:\/\/poiseddevelopers.com\/reality-tech\/?p=1372"},"modified":"2024-04-26T12:25:02","modified_gmt":"2024-04-26T12:25:02","slug":"set-portal-link-for-navigating-above-a-site-collection","status":"publish","type":"post","link":"https:\/\/poiseddevelopers.com\/reality-tech\/set-portal-link-for-navigating-above-a-site-collection\/","title":{"rendered":"Set Portal link for navigating above a Site Collection"},"content":{"rendered":"<h2>Set Portal link for navigating<\/h2>\n<p>One of the annoyances in SharePoint is that there is no easy way for end users to navigate to outside the site collection. Creating a Portal Connection is one easy way. However configuration is manual. Here\u2019s a way to automate this connection.<\/p>\n<p>First, we get the Web Application object, then use that to iterate through all the Site Collection objects.\u00a0 the -Limit All ensures we process all, otherwise it will default to the top 20.\u00a0 Then we set the Portal name and link.\u00a0 note that no update() is required if you use the methods below.\u00a0 If you instead update the properties directly, an object update() is required.<\/p>\n<div><\/div>\n<pre lang=\"php\">  Add-PSSnapin \"Microsoft.SharePoint.PowerShell\" -ErrorAction SilentlyContinue\r\n# Script changes the letter heading in each site collection - Joel Plaut\r\n \r\n$WebApp = Get-SPWebApplication \"http :\/\/SharePoint\";\r\n \r\n$SA = $WebApp | Get-SPSite -Limit all\r\nforeach ($MySite in $SA)\r\n{\r\nWrite-Host \"Fixing Portal for $($MySite.url)\" -ForegroundColor darkred\r\n$MySite.set_Portalname(\"Home\")\r\n$MySite.set_PortalURL(\"http :\/\/SharePoint\")\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Set Portal link for navigating One of the annoyances in SharePoint is that there is no easy way for end users to navigate to outside the site collection. Creating a Portal Connection is one easy way. However configuration is manual. Here\u2019s a way to automate this connection. First, we get the Web Application object, then [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":1378,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[53],"tags":[],"class_list":["post-1372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-navigation"],"acf":[],"_links":{"self":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/comments?post=1372"}],"version-history":[{"count":1,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1372\/revisions"}],"predecessor-version":[{"id":1379,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1372\/revisions\/1379"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media\/1378"}],"wp:attachment":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media?parent=1372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/categories?post=1372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/tags?post=1372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}