Umbraco modules for Runway
Sunday, 8. February 2009, 20:38:09
talk talk about Umbraco, .NET
Sunday, 8. February 2009, 20:38:09
Tuesday, 30. December 2008, 19:36:13
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> <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" exclude-result-prefixes="msxml umbraco.library"> <xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:param name="currentPage"/> <!-- update this variable on how deep your site map should be --> <xsl:variable name="maxLevelForSitemap" select="10"/> <xsl:template match="/"> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <xsl:call-template name="drawNodes"> <xsl:with-param name="parent" select="$currentPage/ancestor-or-self::node [@level=1]"/> </xsl:call-template> </urlset> </xsl:template> <xsl:template name="drawNodes"> <xsl:param name="parent"/> <xsl:if test="umbraco.library:IsProtected($parent/@id, $parent/@path) = 0 or (umbraco.library:IsProtected($parent/@id, $parent/@path) = 1 and umbraco.library:IsLoggedOn() = 1)"> <xsl:for-each select="$parent/node [string(./data [@alias='umbracoNaviHide']) != '1' and @level <= $maxLevelForSitemap]"> <url xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <loc>http://www.corazine.com<xsl:value-of select="umbraco.library:NiceUrl(@id)"/></loc> <lastmod><xsl:value-of select="umbraco.library:FormatDateTime(@updateDate, 'yyyy-MM-dd')"/></lastmod> <changefreq>weekly</changefreq> </url> <xsl:if test="count(./node [string(./data [@alias='umbracoNaviHide']) != '1' and @level <= $maxLevelForSitemap]) > 0"> <xsl:call-template name="drawNodes"> <xsl:with-param name="parent" select="."/> </xsl:call-template> </xsl:if> </xsl:for-each> </xsl:if> </xsl:template> </xsl:stylesheet>
<%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %> <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server"> <umbraco:Macro ContentType="text/xml" Alias="uuContentType" runat="server"></umbraco:Macro><?xml version="1.0" encoding="UTF-8"?><umbraco:Macro Alias="SitemapXml" runat="server"></umbraco:Macro> </asp:Content>
Thursday, 25. December 2008, 20:07:09
<ext assembly="/bin/namespace" type="namespace.classname" alias="alias">
<permission method="methodname" allowAll="true" />
</ext>
anonymous
Devubha Manek writes: This is very good alternative http://ex ...
Tried both, but couldn't save the xslt if I put the xml declarat ...
anonymous
Ruben Verborgh writes: But then your sitemap is invalid. Have h ...
@Ruben yes, i see utf 16, but hey, it works :D the omit-xml-decl ...
anonymous
bootnumlock writes: I think i also see in v4 that change conten ...
anonymous
Ruben Verborgh writes: ... or none at all or course, in which c ...