bbeer Posted February 7, 2014 Posted February 7, 2014 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.
Martijn Geerts Posted February 7, 2014 Posted February 7, 2014 maybe you're searching for this $reisen = $pages->find("template=travelCat"); 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now