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 b29ad07 commit 205445f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,20 @@ function ($a) {

/* Wenn quick_navigation installiert, dann */
ButtonRegistry::registerButton(new QuickNavigationButton(), 5);

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

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

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

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

0 comments on commit 205445f

Please sign in to comment.