Every day added two hundred nodes on the site. What the best way to get all nodes? Now I get all nodes by uComponent. As I understand it get data from XML file umbraco.config. It will be troubles when I have huge list of nodes, isnt it?
Create new xslt and related macro. Put the code below into xslt under <stylesheet></stylesheet>. Using this macro you will get the list of all nodes to the page.
What the best way to get all nodes?
Every day added two hundred nodes on the site. What the best way to get all nodes? Now I get all nodes by uComponent. As I understand it get data from XML file umbraco.config. It will be troubles when I have huge list of nodes, isnt it?
Create new xslt and related macro. Put the code below into xslt under <stylesheet></stylesheet>. Using this macro you will get the list of all nodes to the page.
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:variable name="nodes" select="$currentPage/nodes" />
<xsl:apply-templates select="$nodes" />
</xsl:template>
<xsl:template match="values">
<li><xsl:value-of select="." /></li>
</xsl:template>
Thanks,
Sundip
is working on a reply...