...
The left-hand side menu in CB is handled by the view adminmainmenu. By way of template overrides, we add a link to the list view we will create. You find the original template in {{APPLICATION_DIR}}/views/adminmainmenu/tmpl/default.php. For practical reasons, the default template loads another template named extra_menu_items.php, which is meant for additions to the menu without the need to override the entire menu.
...
The following files are needed to create the list view:
{{CUSTOMIZATION_DIR}}/views/adminlogos/tmpl/default.php
...
Code Block |
---|
<?php defined('CB_VALID_ENTRY') or die(); require(KPATH_LISTING_TMPL); |
{{CUSTOMIZATION_DIR}}/views/adminlogos/metadata.xml
...
Code Block |
---|
<?xml version="1.0" encoding="utf-8"?> <metadata> <view hidden="true" /> </metadata> |
{{CUSTOMIZATION_DIR}}/views/adminlogos/view.html.php
...
The following files are needed to create the form view. It follows the same principles as the list view.
{{CUSTOMIZATION_DIR}}/views/adminlogo/tmpl/default.php
Code Block |
---|
<?php defined('CB_VALID_ENTRY') or die(); require(KPATH_DETAILS_TMPL); |
{{CUSTOMIZATION_DIR}}/views/adminlogo/metadata.xml
Code Block |
---|
<?xml version="1.0" encoding="utf-8"?> <metadata> <view hidden="true" /> </metadata> |
{{CUSTOMIZATION_DIR}}/views/adminlogo/view.html.php
...