SharePoint online 2013: CSS resize promoted links

Published on

<style> .ms-tileview-tile-content img { width:100px!important; height:100px!important; } div.ms-promlink-body { height: 100px; } div.ms-tileview-tile-root { height: 110px !important; width: 110px !important; } div.ms-tileview-tile-content, div.ms-tileview-tile-detailsBox,  div.ms-tileview-tile-content > a > div > span { height: 100px !important; width: 100px !important; } div.ms-tileview-tile-content > a > div > img { max-width: 100%; width: 100% !important; } ul.ms-tileview-tile-detailsListMedium { height: … Continue reading SharePoint online 2013: CSS resize promoted links

SharePoint: Some CSS to make SharePoint surveys look a bit better

Published on

SharePoint surveys when used with rating scales do not look very good at all. Below is some CSS to make them look a bit better, basically adds some spacing & changes the font weights to help the user clearly see the different questions .ms-gridT1 { padding-top: 10px; padding-bottom: 10px; width: 300px; font-weight: normal; } .ms-formlabel … Continue reading SharePoint: Some CSS to make SharePoint surveys look a bit better

SharePoint: Hide page title using javascript

Published on

Add a CEWP or SEWP and add the following code: <script language=”javascript” type=”text/javascript”> ExecuteOrDelayUntilScriptLoaded(retrieveListItemsInclude,’sp.js’); function retrieveListItemsInclude() { document.getElementById(“pageTitle”).style.display=’none’; } </script>

O365 SharePoint Online / 2013 chrome extensions for speedy development

Published on

Chrome SP Editor Create and update SharePoint Online css/js files, inject files to web and manage web properties from Chrome Developer Tools A Google Chrome Extension for creating and updating files (js, css), injecting files to sites and modifying web propertybag values (add, edit, remove) in SharePoint Online from Chrome Developer Tools. This tool will … Continue reading O365 SharePoint Online / 2013 chrome extensions for speedy development

O365 – Provider hosted apps client secrets expiring

Published on

  Haven’t used this yet but looks like a good tool to provide visibility on your provider hosted apps & which client secrets are going to expire, currently information which is not made available as standard:   Tenant Information Portal Summary This solution is used to display information regarding your Azure Active Directory Tenant specifically related … Continue reading O365 – Provider hosted apps client secrets expiring

SharePoint 2013 O365: Display top navigation on search results page

Published on

  Elio Struyf has created a handy piece of JavaScript that will display the global navigation on your search results page as by default its hidden. <script> var refElm = document.getElementsByClassName(‘ms-searchCenter-refinement’); if (refElm.length > 0) {   // Unhide the title row   document.getElementById(‘s4-titlerow’).setAttribute(‘style’, ‘display:block !important’);   // Set the Site Title   document.getElementById(‘DeltaPlaceHolderPageTitleInTitleArea’).innerHTML = … Continue reading SharePoint 2013 O365: Display top navigation on search results page

Sharepoint 2013: Cleanest way to remove Recent from the quick launch menu in O365

Published on

In SharePoint 2013 / SharePoint online when you create a new list or library it automatically appears under a ‘Recent’ section. There are multiple ways to hide this from sandboxed solutions to Jquery etc, however the cleanest way for me to remove / hide this is by using OOTB features & in this case audience … Continue reading Sharepoint 2013: Cleanest way to remove Recent from the quick launch menu in O365

Sharepoint: Site owners with full control get access denied error when trying to create a subsite

Published on

A site owner or user with full control should / would normally be able to create a sub site. However sometimes we get calls where by a site owner cannot create a sub site, when they submit the create new site form they get an access denied page display. If you are getting this error … Continue reading Sharepoint: Site owners with full control get access denied error when trying to create a subsite

Sharepoint 2013: Missing search results in search results webpart compared to result source

Published on

In SharePoint 2013 / SharePoint online you may come across a weird thing where: – You create a result source & verify the results & all appear correct – Configure a search results webpart to use your new result source but you see numerous results missing This is typically happening because by default the search … Continue reading Sharepoint 2013: Missing search results in search results webpart compared to result source

Calculated columns: Using [Today] in a Sharepoint calculated column

Published on

When using [Today] in a formula / calculated column in SharePoint you get the following error: “Calculated columns cannot contain volatile functions like Today and Me” For SharePoint 2010 / SharePoint 2013 / SharePoint Online you can use the Today() function eg. =TODAY()+365   =IF(AND([Date Ordered]<Today()-5, OR([Purchase Status]=”SOLD”,[Purchase Status]=”NOT SOLD”,[Purchase Status]=”ITEM NEVER DELIVERED”,[Purchase Status]=”NO STOCK … Continue reading Calculated columns: Using [Today] in a Sharepoint calculated column

Sharepoint: Open content from CSWP in Office web apps

Published on

When surfacing content using the CSWP it always opens document in the client application instead of the web apps regardless of the configuration. There is a managed property called ‘ServerRedirectedURL’ which provides the correct URL to open documents in the relevant web app. The trouble is that if you users upload non office documents the … Continue reading Sharepoint: Open content from CSWP in Office web apps

O365 Sharepoint: How to get the GUID of a site

Published on

Browse to your site eg. https://yourdomain.sharepoint.com/sites/yoursite/yoursubsite/ Then append _api/web So your complete URL looks like: https://yourdomain.sharepoint.com/sites/yoursite/yoursubsite/_api/web Now look for:

O365: Display content in a accordian in O365

Published on

This JSLink sample will show how to change rendering logic for the whole List View. This sample will read the Title and Description fields’ values and render the fields in an accordion style view. https://code.msdn.microsoft.com/office/Client-side-rendering-code-ccdb2a0e

O365: Tabbed forms in O365

Published on

This JSLink sample allows you to use JQuery Tabs within your SharePoint List Forms. https://code.msdn.microsoft.com/office/Client-side-rendering-code-b2eedf92 I had a bit of trouble getting this to work so I had to: 1) I think #4 is a typo 2) Upload my JS file to the master page gallery as a ‘JavaScript Display Template’ In my case changing … Continue reading O365: Tabbed forms in O365