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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet | |
version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:msxml="urn:schemas-microsoft-com:xslt" | |
xmlns:umbraco.library="urn:umbraco.library" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:content="http://purl.org/rss/1.0/modules/content/" | |
exclude-result-prefixes="msxml umbraco.library"> |
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
<xsl:choose> | |
<xsl:when test="umbraco.library:RequestQueryString('sortbydate') != ''"> | |
<xsl:for-each select="$matchedNodes"> | |
<!-- sort on the page score of the node, within ALL the nodes to return (the sorting must happen before choosing the nodes for this page) --> | |
<xsl:sort select="@createDate" order="descending"/> | |
<!-- only the nodes for this page --> | |
<xsl:if test="position() >= $startMatch and position() <= $endMatch"> | |
<xsl:call-template name="postlist" /> | |
</xsl:if> | |
<xsl:comment/> |
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
<xsl:template name="renderArticleList"> | |
<xsl:param name="orderByPopularity"/> | |
<xsl:param name="addShowInLatestNewsList"/> | |
<xsl:choose> | |
<xsl:when test="$orderByPopularity = 'true'"> | |
== <xsl:value-of select="$addShowInLatestNewsList" /> == | |
<!-- |
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
@foreach(var group in Model.Children.InGroupsOf(2)) | |
{ | |
<div class="row-of-two"> | |
@foreach(var item in group) | |
{ | |
<span>@item.Name</span> | |
} | |
</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
@helper RenderCountryOptions() { | |
<option>Choose a country...</option> | |
@foreach(var region in @Model.XPath("/root/Website/CountryList/CountryList[Country[not(active = 0)]]")) | |
{ | |
<optgroup label="@region.Name"> | |
@foreach(var country in @region.Children) | |
{ | |
<option>@country.Name</option> | |
} | |
</optgroup> |
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
Given this XML: | |
<NewsItem id="1140" parentID="1139" level="3" writerID="0" creatorID="0" nodeType="1137" template="1138" sortOrder="1" createDate="2011-08-10T13:46:53" updateDate="2011-08-25T16:51:18" nodeName="Test newsitem" urlName="test-newsitem" writerName="admin" creatorName="admin" path="-1,1051,1139,1140" isDoc=""> | |
<categories><![CDATA[allergy]]></categories> | |
<introText><![CDATA[Minime vero, inquit ille, consentit. Quod si ita se habeat, non possit beatam praestare vitam sapientia.]]></introText> | |
<bodyText><![CDATA[ | |
<p>Ipsum.</p> | |
]]></bodyText> | |
<imageUpload>/media/2209/tulips.jpg</imageUpload> | |
<imageCrop> |
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
<%@ Page Language="C#" MasterPageFile="../../masterpages/umbracoPage.Master" AutoEventWireup="True" CodeBehind="EditPage.aspx.cs" Inherits="SomeCompany.CustomTrees.EditPage" %> | |
<%@ Register Namespace="umbraco.uicontrols" Assembly="controls" TagPrefix="umb" %> | |
<asp:Content ID="Content" ContentPlaceHolderID="body" runat="server"> | |
<umb:UmbracoPanel ID="Panel1" runat="server" hasMenu="true" Text="Edit Group"> | |
<umb:Pane ID="Pane1" runat="server"> | |
<umb:PropertyPanel ID="PPanel0" runat="server" Text="Name"> | |
<asp:TextBox ID="Name" runat="server" MaxLength="150" CssClass="guiInputText guiInputStandardSize"></asp:TextBox> | |
</umb:PropertyPanel> |
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
<umbraco:Macro runat="server" Language="cshtml"> | |
<body class="@Model.NodeTypeAlias.ToLower().Replace(" ", "-")"> | |
</umbraco:Macro> |
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
<xsl:variable name="myBoolean" select="$currentPage/prop = '1'" /> | |
<!-- Doesn't work! --> | |
<xsl:value-of select="myTest:GetResult($myBoolean)" /> | |
<!-- Works.. --> | |
<xsl:value-of select="myTest:GetResult($currentPage/prop = '1')" /> |
OlderNewer