Skip to content

Commit

Permalink
Update boot.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w committed Jul 8, 2024
1 parent 10eeabd commit 0a7c0e3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,21 @@ static function ($a) {
);
}
});


if(rex::isBackend()) {
$addon = rex_addon::get('neues');
$pages = $addon->getProperty('pages');

$_csrf_key = rex_yform_manager_table::get('rex_neues_entry')->getCSRFKey();
$token = rex_csrf_token::factory($_csrf_key)->getUrlParams();

$params = array();
$params['table_name'] = 'rex_neues_entry'; // Tabellenname anpassen
$params['rex_yform_manager_popup'] = '0';
$params['_csrf_token'] = $token['_csrf_token'];
$params['func'] = 'add';

$pages['neues']['title'] .= ' <a style="position: absolute; top: 0; right: 0; padding: 5px; margin: 8px 19px 8px 8px" href="'.rex_url::backendPage('neues/entry', $params) .'" class="label label-default pull-right">+</a>';
$addon->setProperty('pages', $pages);
}

0 comments on commit 0a7c0e3

Please sign in to comment.