
PHP-Code:
foreach($this->group('myGroup') as $field)
{
echo $field->html();
}
foreach($this->group('myGroup') as $field)
{
echo $field->html();
}
foreach($this->group('myGroup')->fields as $field)
{
echo $field->html();
}
foreach($this->group('myGroup')->fields as $field)
{
echo $field->html();
}
<?php foreach ($this->entries as $entry) : ?
<?php foreach ($entry->get as $field) : ?
<?php echo $field->html();
<?php endforeach; ?>
<?php endforeach; ?>
$objGroup = \PCT\CustomElements\Core\GroupFactory::findById( $entry->field('myField')->attribute->get('pid') );
echo $objGroup->get('alias');
#0 templates/customcatalog_layout_immo_leser.html5(89): __error(2, 'Invalid argumen...', '/home/realis/do...', 89, Array) #1 system/modules/core/library/Contao/BaseTemplate.php(88): include('/home/realis/do...') #2 system/modules/core/library/Contao/Template.php(277): Contao\BaseTemplate->parse() #3 system/modules/core/classes/FrontendTemplate.php(46): Contao\Template->parse() #4 system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Plugins/CustomCatalog/Core/CustomCatalog.php(497): Contao\FrontendTemplate->parse() #5 system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Plugins/CustomCatalog/Frontend/ModuleReader.php(142): PCT\CustomElements\Plugins\CustomCatalog\Core\CustomCatalog->render() #6 system/modules/core/modules/Module.php(287): PCT\CustomElements\Plugins\CustomCatalog\Frontend\ModuleReader->compile() #7 system/modules/pct_customelements_plugin_customcatalog/PCT/CustomElements/Plugins/CustomCatalog/Frontend/ModuleReader.php(91): Contao\Module->generate() #8 system/modules/core/elements/ContentModule.php(59): PCT\CustomElements\Plugins\CustomCatalog\Frontend\ModuleReader->generate() #9 system/modules/core/library/Contao/Controller.php(484): Contao\ContentModule->generate() . . .
$this->groups();
// und
$this->group('myGroup')
$groups = \PCT\CustomElements\Core\GroupFactory::findPublishedByParentId(CustomElementID)
<?php echo $this->field('coords')->html('customelement_attr_googlemap_teaser'); ?>
<a href="<?php echo $this->field('url_link')->value(); ?>" target="_blank"></a>
<a href="<?php echo \FilesModel::findByPk($this->field('pdf_link')->value())->path; ?>" target="_blank"></a>
Einen Kommentar schreiben: