Skip to content

Commit

Permalink
Merge branch 'support-rs-fe-helper' into develop
Browse files Browse the repository at this point in the history
* support-rs-fe-helper:
  Added support for the rocksolid FE helper
  • Loading branch information
Toflar committed Aug 25, 2021
2 parents a4b4630 + 18faed1 commit 1b30c76
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/ContaoManager/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,24 @@ public function getExtensionConfig($extensionName, array $extensionConfigs, Cont
];
}

if ('rocksolid_frontend_helper' === $extensionName && !isset($extensionConfigs[0]['backend_modules']['nodes'])) {
$extensionConfigs[0]['backend_modules']['nodes'] = [
'table' => 'tl_node',
'act' => 'edit',
'column' => 'nodes',
'column_type' => 'serialized',
'ce_column' => 'nodes',
'ce_column_type' => 'serialized',
'icon' => 'header.svg',
'content_elements' => [
'nodes',
],
'fe_modules' => [
'nodes',
],
];
}

return $extensionConfigs;
}
}

0 comments on commit 1b30c76

Please sign in to comment.