ok - I’m trying to build a sitemap with get resources, not sure if this is the easiest/best way:
I’m calling the initial top level items like this:
[[!getResources?
&tpl=`SiteMapItem`
&parents=`0`
&depth=`0`
&limit=`9999`
&includeContent=`1`
&showHidden=`0`
&hideContainers=`0`
&sortby=`id`
&sortdir=`asc`
]]
Then in the SiteMapItem template [very ’testing’ very ’beta’]:
<div style="float:left;padding-left:15px;width:100%;">
(<a href="[[~[[+id]]]]">[[+id]]</a>) [[+pagetitle]] - [[+longtitle]] - [[+publishdate]] - [[+introtext]].......
[[!getResources? &tpl=`SiteMapItem` &parents=`[[+id]]` &depth=`0` &limit=`9999` &includeContent=`1` &showHidden=`0` &hideContainers=`0` ]]
<br />
</div>
and it works, I’m concerned that it calls getResources around 100 times, yes I can [and will cache] it, but is there a better/more efficient way to do this?
-thanks
-sean
PS> I thought about using wayFinder, but I need to pull the +introtext from each resource [among other items]