bin etwas verwirrt...
denn
PHP-Code:
...
$GLOBALS['TL_DCA'][$metaModel]['list']['operations']['content'] = array(
'label' => array('Bearbeite Content'),
'icon' => 'article.gif',
'href' => 'table=tl_content',
/*'button_callback' => function ($row, $href, $label, $title, $icon, $attributes, $table) {
return sprintf(
'<a href="contao/main.php?do=%s&table=tl_content&id=%s&rt=%s" title="%s"%s>%s</a>',
\Input::get('do'),
$row['id'],
\RequestToken::get(),
$title,
$attributes,
\Image::getHtml($icon, $title)
);
}*/
);
...
Änderungen an der Position, wo $row['id'] steht, haben keine Auswirkung - selbst das Auskommentieren des button_callback hat keine Auswirkung im BE... ???
Ich hatte den Button-Callback so verstanden, dass dieser den a-Tag erzeugt - leider ist die Suche bei Google nach "contao button_callback" sehr dünn (vorsichtig ausgedrückt).
(Cache gelöscht bzw. abgestellt)
Lesezeichen