Start ::
Developers Corner ::
Module Development ::
Nested pnRender items and caching...
Moderated by: Support Team
-
- rank:
-
Professional
- registered:
- September 2004
- Status:
- offline
- last visit:
- 07.08.08
- Posts:
- 813
The following generates a nested view of data. Parent is items, child is propitems.
The API function basically grabs all items, then as it iterates the parents, it has a secondary loop that iterates related children within the parent loop:
Without the FALSE for the caching in the child loop, with pnRender caching turned on, then the first child record is the only one that shows...for ALL results! IN other words, every parent renders correctly, but whatever children they have do not show - the FIRST child shows in their place, over and over for every parent.
What is the right way to do this with caching? The data will not change often, so even a full cache of all parent and child items would be great.
Thanks for any insight.
UHEweb
Start ::
Developers Corner ::
Module Development ::
Nested pnRender items and caching...
