RockSolid Custom Element mit Feldtyp "list": Text / URL wird nicht ausgegeben
Hallo zusammen,
ich möchte mit einem Rocksolid Custom Element gerne Buttons ausgeben. Es können 1-2 angelegt werden mit jeweils einem Text der per URL-Picker verlinkt werden kann.
Leider werden nur die "Button container" ausgegeben, nicht aber die entsprechenden Links darin:
HTML-Code:
<div class="button-box">
<a class="button-basic" href=""> </a>
<a class="button-basic" href=""> </a>
</div>
Meine config-Datei sieht so aus:
PHP-Code:
<?php
// rsce_double-button_config.php
return array(
'label' => array('Button Double', 'CTA Button Text mit Link'),
'types' => array('content'),
'contentCategory' => 'texts',
'moduleCategory' => 'miscellaneous',
'fields' => array(
'buttons' => array(
'label' => array('Buttons', ''),
'elementLabel' => '%s. button',
'inputType' => 'list',
'minItems' => 1,
'maxItems' => 2,
'fields' => array(
'text' => array(
'label' => array('Text', 'Linktext...'),
'inputType' => 'textarea',
'eval' => array('tl_class' => 'w50'),
),
'url' => array(
'label' => array('Link', 'URL'),
'inputType' => 'url',
'eval' => array('tl_class' => 'w50'),
)
)
)
)
);
Mein Template so:
PHP-Code:
<!-- rsce_double-button.html5 -->
<div class="button-box">
<?php foreach ($this->buttons as $button): ?>
<a class="button-basic" href="<?php echo $this->url ?>"> <?php echo $this->text ?></a>
<?php endforeach ?>
</div>
Was mach ich falsch?