Hi,
I want to show 'All documents' from different pages. My tree is like this:
-Documents
--Docs A (template=portal-files, field=portal_bestanden)
--Docs B (template=portal-files, field=portal_bestanden)
--Docs C (template=portal-files, field=portal_bestanden)
On every page (Docs A for instance), different files are uploaded
This is my code. The output are only the files from the first page.
$items = $pages->get("template=portal-files")->portal_bestanden;
foreach ($items as $item) {
$name = str_replace("_", " ", $item->name);
echo '<div class="row" style="padding:7px 0 5px 0">
<div class="col-md-6">
<a href="'. $item->url .'">'. $name .'</a><br />
</div>
<div class="col-md-2">
'. $item->filesizeStr .'<br />
</div>
<div class="col-md-4">
'. $item->description .'<br />
</div>
</div>
<div class="row">
<div class="col-md-12 lijn">
<div class="lijn"></div>
</div>
</div>';
}