This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<asp:ContentPlaceHolder runat="server" id="html5"> | |
<-- In your .aspx page, use a override this ContentPlaceHolder using "IE=9" to enable HTML5 features - on pages where it's required... --> | |
<meta http-equiv="X-UA-Compatible" content="IE=8"/> | |
</asp:ContentPlaceHolder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
add inside the 'head' element of master page. | |
replace title="Intranet" with the name of your intranet (if branded) | |
--> | |
<link rel="search" title="Intranet" type="application/opensearchdescription+xml" href="/Style%20Library/opensearch.xml" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inherits Umbraco.Web.Macros.PartialViewMacroPage | |
@{ var mediaId = Model.MacroParameters["mediaId"]; } | |
@helper DisplayFolder(dynamic folder, bool collapsed) { | |
var items = folder.Children().OrderBy("DocumentTypeAlias Desc,Name"); | |
if (items.Any()) { | |
<a class="list-group-item" role="button" aria-expanded="false" data-toggle="collapse" href="#macro-mediaList-folder-@folder.Id"> | |
<i class="glyphicon glyphicon-folder-open"></i> @folder.Name | |
</a> | |
<div class="list-group @(collapsed?"collapse":"collapse in") well well-sm" id="macro-mediaList-folder-@folder.Id"> | |
@foreach(var item in items) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************** | |
GLOBAL | |
*********************/ | |
body, | |
textarea, | |
input, | |
keygen, | |
select, | |
button { | |
font-family: 'segoe ui semilight', 'segoe ui', myriad, sans-serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Umbraco.Core; | |
using Umbraco.Core.Services; | |
using Umbraco.Web; | |
using Umbraco.Web.Routing; | |
using umbraco; | |
using System.Linq; | |
namespace MyUmbraco | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT replace(umbracoRedirectUrl.url, '1075/', '') as url | |
,umbracoNode.id | |
,umbracoRedirectUrl.contentKey | |
FROM umbracoRedirectUrl | |
INNER JOIN umbracoNode on umbracoRedirectUrl.contentKey = umbracoNode.uniqueID | |
# Run in SSMS, right click results and export to CSV. Import CSV to SEOChecker. | |
# NB replace 1075 with your root node ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!window.parent.document.querySelector('style#v9removepadding')) { | |
var style = window.parent.document.createElement('style'); | |
style.id = "v9removepadding"; | |
style.innerText = ".acwallEmailView .emailexpandedaccordion { margin:0; width:100% } TABLE.ms-crm-FormSection td { padding: 4px 1px 1px 16px !important; min-height: 26px; }"; | |
window.parent.document.body.appendChild(style); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Facilitates the loading of specific properties of a Microsoft.SharePoint.Client.ClientObject object or Microsoft.SharePoint.Client.ClientObjectCollection object. | |
.DESCRIPTION | |
Replicates what you would do with a lambda expression in C#. | |
For example, "ctx.Load(list, l => list.Title, l => list.Id)" becomes | |
"Load-CSOMProperties -object $list -propertyNames @('Title', 'Id')". | |
.EXAMPLE | |
Load-CSOMProperties -parentObject $web -collectionObject $web.Fields -propertyNames @("InternalName", "Id") -parentPropertyName "Fields" -executeQuery | |
$web.Fields | select InternalName, Id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
via: https://www.linkedin.com/pulse/play-video-file-from-sharepoint-document-library-mobile-hai-nguyen | |
alt: https://threewill.com/sharepoint-videos-in-ios-safari-iphone-ipad-unforgiving/ | |
--> | |
<video controls="true" style="min-height:360px;width:100%;"> | |
<source src="/PublishingImages/your-video.mp4"> | |
Sorry, your browser does not support playback of this video. | |
</video> | |
<script> | |
if (/iPhone|iPad|iPod/i.test(navigator.userAgent) || document.location.search.indexOf('video-ios-test') != -1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"recommendations": [ | |
"eg2.tslint", | |
"rbbit.typescript-hero", | |
"pmneo.tsimporter", | |
"esbenp.prettier-vscode", | |
"christian-kohler.path-intellisense", | |
"CoenraadS.bracket-pair-colorizer", | |
"eamodio.gitlens", | |
"ryu1kn.partial-diff", |