mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: Pass params to parent class
This commit is contained in:
parent
678bf9a43a
commit
ada36aaab8
@ -10,7 +10,7 @@ class GridFieldConfig_RecordEditor extends GridFieldGridFieldConfig_RecordEditor
|
|||||||
{
|
{
|
||||||
public function __construct($itemsPerPage = null)
|
public function __construct($itemsPerPage = null)
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct($itemsPerPage);
|
||||||
|
|
||||||
$this->removeComponentsByType([
|
$this->removeComponentsByType([
|
||||||
GridField_ActionMenu::class,
|
GridField_ActionMenu::class,
|
||||||
|
@ -10,7 +10,7 @@ class GridFieldConfig_RelationEditor extends GridFieldGridFieldConfig_RelationEd
|
|||||||
{
|
{
|
||||||
public function __construct($itemsPerPage = null, $showPagination = null, $showAdd = null)
|
public function __construct($itemsPerPage = null, $showPagination = null, $showAdd = null)
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct($itemsPerPage, $showPagination, $showAdd);
|
||||||
|
|
||||||
$this->removeComponentsByType([
|
$this->removeComponentsByType([
|
||||||
GridField_ActionMenu::class,
|
GridField_ActionMenu::class,
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<% if $Submenu %>
|
<% if $Submenu %>
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="nav flex-column">
|
<ul class="nav flex-column">
|
||||||
|
<% if $TopLevelSubmenu %>
|
||||||
<% with $Page.Level(1) %>
|
<% with $Page.Level(1) %>
|
||||||
<li class="nav-item-level1 nav-item {$CSSClass} $ExtraClass">
|
<li class="nav-item-level1 nav-item {$CSSClass} $ExtraClass">
|
||||||
<b class="nav-link">
|
<b class="nav-link">
|
||||||
@ -9,6 +10,16 @@
|
|||||||
</b>
|
</b>
|
||||||
</li>
|
</li>
|
||||||
<% end_with %>
|
<% end_with %>
|
||||||
|
<% else %>
|
||||||
|
<% with $Page %>
|
||||||
|
<li class="nav-item-level1 nav-item {$CSSClass} $ExtraClass">
|
||||||
|
<b class="nav-link">
|
||||||
|
$MenuTitle.XML
|
||||||
|
<% if $isCurrent || $isSection %><i class="visually-hidden">(current)</i><% end_if %>
|
||||||
|
</b>
|
||||||
|
</li>
|
||||||
|
<% end_with %>
|
||||||
|
<% end_if %>
|
||||||
|
|
||||||
<% loop $Submenu %>
|
<% loop $Submenu %>
|
||||||
<% include NavItem %>
|
<% include NavItem %>
|
||||||
|
Loading…
Reference in New Issue
Block a user