Tag Archives: Anonymous Access

Disable mobile auto-redirect for SharePoint anonymous access website

The quickest way for all mobile devices and browsers add the following to the web applications web.config file:

However for a more granular approach, edit the App_Browsers\compat.browser changing the following to “false” for the relevant userAgent:

SharePoint Online Public Site: adding JS & CSS references to a Master page

I’m not going to describe the process of creating a custom master page from end to end, as there are plenty of good articles and blogs out there already. I just want to share one possible pitfall that I fell into…

As any owner of a website might, I decided to create a new master page for my SharePoint Online Public Site.  And to save time I started by coping one of the HTML files associated with an “out of the box” mater-pages.

The first thing I planned to do was to add references to my CSS and JavaScript files. This should be a very simple task, unless like me you decide to try to add the references right at the bottom of the <HTML /> block. Or to me more precise, just after the <mso:CustomDocumentProperties /> block of code.

Note: The mso tag contains block SharePoint metadata used by Design Manager to convert the file into a .master file.

After much trial and error I found the “Design Manager” parser seemed to ignores code (or at least mine) that proceeds the mso tags, in the <head /> block.  The fix is simple, I added my references just above the mso tags and all will be fine.

And this is what my JavaScript and CSS references look like:

<!--CS: References to External Files-->

<!--SPM:<SharePoint:CssRegistration Name="/_catalogs/masterpage/MPName/CSS/london.css" After="corev15.css" runat="server"/>-->

<!--MS:<script id="jQuery"     type="text/javascript" src="/_catalogs/masterpage/MPName/JS/_Bundle.js">--><!--ME:</script>-->

<!--CE: References to External Files-->

If you are interested in what these tag and can be used for, taking a look at this page: http://msdn.microsoft.com/en-us/library/jj822370.aspx

Other useful links:

Update January 2015:

Starting January 2015, Microsoft is making changes to the SharePoint Online Public Website feature. Customers who currently use this feature will continue to have access to the feature for a minimum of two years after the changeover date of March 9, 2015. New customers who subscribe to Office 365 after the changeover date won’t have access to this feature. Moving forward, Office 365 customers will have access to industry-leading third-party offerings that will enable them to have a public website that provides a complete online solution and presence.

https://support.microsoft.com/en-us/kb/3027254

SharePoint Online Public Site: how to access the Webpart Gallery

When working with SharePoint Online’s Public Site you may have noticed that you do not have access to the Webparts Gallery from the Settings page. It would appear that, at least for my version of O365 SharePoint, Microsoft has hidden the “Web parts” link from the Settings page.

If you need to manage your custom webparts, here is a simple trick. Go to your Team Site setting’s page and click on the “Webparts” link and copy the URL into a text editor (e.g. Notepad++), for example:

https://[SITE-NAME].sharepoint.com/_layouts/15/start.aspx#/_catalogs/wp/Forms/AllItems.aspx

Next copy your Public Site’s base URL:

https://[SITE-NAME]-public.sharepoint.com/

Then take the path from the Team Site:

/_layouts/15/start.aspx#/_catalogs/wp/Forms/AllItems.aspx

Note the most important part of the path is:

/_catalogs/wp/Forms/AllItems.aspx

And append to you Public Site’s URL making a complete URL like this:

https://[SITE-NAME]public.sharepoint.com/_layouts/15/start.aspx#/_catalogs/wp/Forms/AllItems.aspx

Finally, past the newly created URL into your browser and wait for it to load Public Site’s Webpart Gallery…

Quick Referrence

If you can’t be bothered to go through these steps, I’ve listed the paths to the missing Galleries links below, with the exception of the “Site content types”:

  • List templates                   /_catalogs/lt/Forms/AllItems.aspx
  • Site columns                     /_layouts/15/mngfield.aspx
  • Recycle Bin                       /_layouts/15/AdminRecycleBin.aspx
  • Solutions                           /_catalogs/solutions/Forms/AllItems.aspx
  • Top Link Bar                    /_layouts/15/topnav.aspx
  • Tree view                         /_layouts/15/navoptions.aspx
  • Web parts                        /_catalogs/wp/Forms/AllItems.aspx

05/08/2013 (UK Date) Update:

Content Types can be managed using SharePoint Designer 2013.​

10/10/2013 (UK Date) Update:

Subsites can be managed using SharePoint Designer 2013.​

Update January 2015:

Starting January 2015, Microsoft is making changes to the SharePoint Online Public Website feature. Customers who currently use this feature will continue to have access to the feature for a minimum of two years after the changeover date of March 9, 2015. New customers who subscribe to Office 365 after the changeover date won’t have access to this feature. Moving forward, Office 365 customers will have access to industry-leading third-party offerings that will enable them to have a public website that provides a complete online solution and presence.

https://support.microsoft.com/en-us/kb/3027254