Template for express_entry_detail
Permalink
Hi everyone
I have set up express objects for a page and stitched together a custom template for the express_entry_detail block following Andrew's tutorial.
As long as I use the standard template, the results show just fine. As soon as I apply my template, the area goes blank - no code found in the inspector apart from bootstrap container layout.
I am using C5 8.5.1 running on php version 7.1.30.
This is what my code looks like:
What is missing? I have basic knowledge of php, but I am not a programmer ;D
I have set up express objects for a page and stitched together a custom template for the express_entry_detail block following Andrew's tutorial.
As long as I use the standard template, the results show just fine. As soon as I apply my template, the area goes blank - no code found in the inspector apart from bootstrap container layout.
I am using C5 8.5.1 running on php version 7.1.30.
This is what my code looks like:
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?> <?php if (isset($renderer) && isset($entry) && is_object($entry)) { $ausflugsziele = $entry->getAusflugsziele();?> <div> <?php if (count($ausflugsziele)){ foreach($ausflugsziele as $ausflugsziel) { ?> <div> <?=$ausflugsziel->getAusflugszielName()?> </div> <div> <?=$ausflugsziel->getAusflugszielBild()?> </div> <div> <?=$ausflugsziel->getAusflugszielBeschreibung()?>
Viewing 15 lines of 23 lines. View entire code block.
What is missing? I have basic knowledge of php, but I am not a programmer ;D