Umbraco things I always forget
Get root item in xslt
<xsl:variable name="siteRootNode" select="$currentPage/ancestor-or-self::* [@level>=1 and @isDoc]"/>
Use the variable
<xsl:value-of select="$siteRootNode/googleAnalytics"/>
Spit out the variable
<xsl:copy-of select="$siteRootNode" />
Syntax:
Insert page value: [#propertyAlias]
Insert recursive page value: [$propertyAlias]
Insert cookie value: [%cookieValueKey]
Insert value from request collection: [@requestValueKey]
