This file contains hidden or 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
.video-wrapper { | |
perspective: 1000px; | |
} | |
video { | |
transform: rotateY(-30deg); | |
} | |
<div class="video-wrapper"> | |
<video width="400" controls> | |
<source src="http://www.w3schools.com/HTML/mov_bbb.mp4" type="video/mp4"> | |
<source src="http://www.w3schools.com/HTML/mov_bbb.ogg" type="video/ogg"> |
This file contains hidden or 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
@Html.Raw(@umbraco.library.ReplaceLineBreaks(@Model.property)); |
This file contains hidden or 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
var maxHeight = 0; | |
$(".myElement").each(function(){ | |
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } | |
}); | |
$(".myElement").height(maxHeight); |
This file contains hidden or 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
Get all nodes of doctype below level 2 | |
$ancestorOrSelf/ancestor-or-self::* [@level=2]//*[@isDoc][self::Kategori] | |
Get all nodes of doctype | |
//*[@isDoc][self::Kategori] |
This file contains hidden or 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap Masonry Template</title> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="style.css"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans+Caption:400,700"> |
This file contains hidden or 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.Web.Templates | |
@inherits UmbracoViewPage<Lecoati.LeBlender.Extension.Models.LeBlenderModel> | |
@foreach (var item in Model.Items) | |
{ | |
if(item.GetValue<string>("more") != null && item.GetValue<string>("more") != ""){ | |
<a href="@Umbraco.TypedContent(item.GetValue<string>("more")).Url">Read more</a> | |
} | |
} |
This file contains hidden or 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.Mvc.UmbracoTemplatePage | |
<div> | |
@if (CurrentPage.HasValue("imageID")) | |
{ | |
var featureImage = Umbraco.Media(CurrentPage.imageID); | |
<img style="max-width:100%;" src="@featureImage.GetResponsiveImageUrl(1400, 490)" alt="" /> | |
} | |
</div> |
This file contains hidden or 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 your grid property is aliased bodyText you can do: | |
@CurrentPage.GetGridHtml() | |
Else you have to give it the property alias that you gave it: | |
@CurrentPage.GetGridHtml("myGridPropertyAlias") | |
By default it will render Bootstrap3 compatible markup. You can overload it: | |
@CurrentPage.GetGridHtml("myGridPropertyAlias", "bootstrap2") | |
Will render bootstrap2 compatible markup. |
This file contains hidden or 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.Mvc.UmbracoTemplatePage | |
@{ | |
string tagToFind = Request.QueryString["tag"]; | |
var allNodesWithTags = Umbraco.TagQuery.GetContentByTag(tagToFind); | |
} | |
@foreach (var node in allNodesWithTags) | |
{ | |
<a href="@node.Url">@node.Name</a><br /> |