Skip to content

Instantly share code, notes, and snippets.

@hissy
Last active February 4, 2020 23:11
Show Gist options
  • Save hissy/4378684 to your computer and use it in GitHub Desktop.
Save hissy/4378684 to your computer and use it in GitHub Desktop.
How to use Bootstrap Tabs in concrete5 dashboard
<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Single Page Name'), false, false, false, false, false, false); ?>
<div class="ccm-pane-body">
<?php
// Tab setting using array
$tabs = array(
// array('tab-id', 'Tag Label', true=active)
array('tab-1', 'Tab 1', true),
array('tab-2', 'Tab 2'),
);
// Print tab element
echo Loader::helper('concrete/interface')->tabs($tabs);
?>
<div id="ccm-tab-content-tab-1" class="ccm-tab-content">
Tab Content 1
</div>
<div id="ccm-tab-content-tab-2" class="ccm-tab-content">
Tab Content 2
</div>
</div>
<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper(false);?>
@nklatt
Copy link

nklatt commented Feb 4, 2020

Thanks! In 5.7.5.13, the helper needed is concrete/ui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment