Jump to content

Recommended Posts

Posted

Hi all 

still ne to the system so got stuck with the output for a list. I need a listing of trips from several parent sub Documents with a template travelCat

I've tried the call by categories but get only on cat listed.

<?php $reisen = $pages->get("/angebot-reisen/messen-ausstellungen/",'/baumaschinen/', "sort=sort")->children; ?>

<?php
foreach ($reisen as $reise) { ?>
   <div class="travel-item">
     <h2><a href="<?php echo $reise->url;?>" title="Detailansicht" class="tripDetail"><?php echo $reise->longtitle; ?></a></h2>
<a href="<?php echo $reise->reise_flyer->url; ?>" title="Flyer als PDF laden" target="_blank" class="tripFlyer">Flyer</a>
   </div>
<?php } ?>
 

could I eventually call all the documents with template travelDetail? I've tried this, but I get an error when chaining get to find.

Your help is much appreciated.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...