I’m using SiteAtoZ to list peoples names according to their surname which is stored in a TV. So if I have a resource with a pagetitle of ’Fred Smith’ the surname TV would be ’Smith’. So Fred Smith would be listed under S not F.
Using getResources I get a list based on the surname:
[[!getResources? &parents=`13` &tpl=`AzItemTpl1` &showHidden=`1` &limit=`1000` &sortbyTV=`surname`]]
However, when I convert this to the SiteAtoZ snippet:
[[!SiteAtoZ? &parents=`13` &tpl=`AzItemTpl1` &showHidden=`1` &limit=`1000` &sortbyTV=`surname` &title=`surname` &includeTVs=`1` &processTVs=`1` and &tvPrefix=`surname` ]]
No resources are returned. Stripping the call to:
[[!SiteAtoZ? &parents=`13` &tpl=`AzItemTpl1` &showHidden=`1` &limit=`1000` &sortbyTV=`surname`]]
Produces an A to Z list based on the pagetitle. I’m sure I’m missing something really simple but can’t see what.