ModX getResources startId error -


i'm having trouble getresources call. should start @ top of menu, , display each direct child. here's call:

[[!getresources?  &parents=`1` &depth=`depth` &limit=`0` &tpl=`home`  &tpl_2=`section2`  &tpl_3=`section3`  &tpl_4=`section4`  &tpl_5=`section5`  &tpl_6=`section6`  &tpl_7=`section7`   &includetvs=`1`  &processtvs=`1`  &includecontent=`1` ]] 

it displays every resource other first correctly, first resource uses right template pulls wrong resource (resource 6, first child has children.

update: appears displaying array of info resource 1 last. still don't know why it's doing @ all.

very strange behavior.. might try:

  • &tplfirst=home
  • &depth should integer, unlikely, cause problems
  • check make sure first resource published , not hidden

by default believe getresources sorts on menuindex - check indexes [or specify sort order explicitly - can't trust order resources appear in resource browser, may cached or set not update on save]

kind of looks trying build menu/navigation, wayfinder not work you?

and always, always-always clear modx cache....


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -