Hello there, I’m using getPage to add a listing of archived issues of a magazine website, and shows the issues resources ok, but not their content (which is a getResources call of each issue children).
Basically, this is my archive folder structure:
-Archive Res
-Issue 45 Res
- Name of article Res
- Name of article Res
- Name of article Res
- Name of article Res
-Issue 44 Res
- Name of article Res
- Name of article Res
- Name of article Res
- Name of article Res
-Issue 43 Res
- Name of article Res
- Name of article Res
- Name of article Res
- Name of article Res
So when the user is in the Archive page they should see 2 issues per page, and beneath each issue a list of their children (articles on each issue).
This is the getPage call within the Archive Resource Content (You can see I added the includeContent call):
http://www.barristermagazine.com/zstaging/archive.html
[[!getPage? &element=`getResources` &parents=`41` &limit=`2` &depth=`0` &tpl=`archiveTpl` &includeContent=`1` &showHidden=`1` &sortby=`pagetitle` &sortdir=`DESC`]]
<hr />
<div class="pageNav">[[!+page.nav]]</div>
This is the archiveTpl Chunk (you can see I have the content placeholder for the issue):
<h3>[[+pagetitle]]</h3><br />
<div>[[+content]]</div>
And this is the getResources in each Issue resrouce content. It outputs an unordered list of its children resources, and when I preview the issue resource it works fine (
http://www.barristermagazine.com/zstaging/archive-articles/issue-42/).
<ul>
[[!getResources? &parents=`[[*id]]` &tpl=`archiveRowTpl` &showHidden=`1` &limit=`20`]]
</ul>
I am sure I may be missing something, but I’d very thankful for any light or help you experts can give me...