PHP code example of xddesigners / silverstripe-better-tabs
1. Go to this page and download the library: Download xddesigners/silverstripe-better-tabs library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xddesigners / silverstripe-better-tabs example snippets
$fields->fieldByName('Root.Alerts')->setColor('#ffcc00'); // text colour
$fields->fieldByName('Root.Live')->setColor('#ffffff', '#c0392b'); // text + background
$fields->fieldByName('Root.Live')->setIconColor('#2ecc71'); // colour just the icon
$fields->fieldByName('Root.Deep')->setMode('dropdown'); // or ->enableDropdown()
$fields->fieldByName('Root')->enableBreadcrumbs(); // nested paths only (2+ levels)
$fields->fieldByName('Root')->enableBreadcrumbs(true, true); // every tab, even top-level leaves