Dashboard Menu Help

Permalink
Hello,

I am trying to update the add ons that I made to the new 5.5 style. My add ons had tabs at the top which are other single pages, how do I get those into the new menu as right now my tabs are gone.

Thanks!

 
Mainio replied on at Permalink Reply
Mainio
Now your sub-pages are under the tiny little arrow there next to where you close the pane.

Many developers have said that they should be in a more visible spot.

Antti
tciweb replied on at Permalink Reply
Yeah that is where they are supposed to be but I do not have the arrow at all.
Mainio replied on at Permalink Reply
Mainio
The arrow shows basically same level children of the first parent of the current page.

So, you'll need to have a e.g. structure like this:
- Dashboard
-- Your add-on
--- View 1
---- Sub 1
---- Sub 2
---- Sub 3
--- View 2

And now if you're under any of the "Sub" pages, you'll see all the children of "View 1" in there. And if you're under any of the "View" pages, you'll see first level children of "Your add-on" page in there, i.e. "View 1" and "View 2".

Check example of how this is done from the core:
/concrete/controllers/dashboard/system/attributes/**
/concrete/single_pages/dashboard/system/attributes/**


Antti
tciweb replied on at Permalink Reply 2 Attachments
I apologize if I am not explaining this right, and I understand what should be displayed under the arrow, but How do I even get the arrow to show up? My Pane just has the page name in there. See the attached screenshots.

The code for that view.php is :
<?php  
defined('C5_EXECUTE') or die(_("Access Denied."));
?>
<h1><span><?php echo t('Small Group Entries')?></span></h1>
<div class="ccm-dashboard-inner">
   <p><?php echo t('These are all the Small Groups in the system.')?></p>
   <table class="entry-form" > 
      <tr> 
         <td class="header">                Leader</td> 
         <td class="header">Network</td>      
         <td class="header">Display On Website</td>      
      </tr>
      <?php foreach ($cellgroups as $cellgroup): 
      $pkt = Loader::helper('concrete/urls');
      $pkg = Package::getByHandle('tci_small_groups');
Mainio replied on at Permalink Best Answer Reply
Mainio
Oh, ok, sorry for not getting that.

Here's how you should build the dashboard page in 5.5+:
<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Small Group Entries'), t('Your help message.'), false, false)?>
<div class="ccm-pane-body">
   <p><?php echo t('Your pane contents go here.') ?></p>
</div>
<div class="ccm-pane-footer">
   <p><?php echo t('E.g. for pane buttons.') ?></p>
</div>
<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper(false); ?>


And if you don't need the footer:
<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Small Group Entries'), t('Your help message.'), false, false)?>
<div class="ccm-pane-body ccm-pane-body-footer">
   <p><?php echo t('Your pane contents go here.') ?></p>
</div>
<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper(false); ?>


And if you need the options section on top of the pane (e.g. check sitemap), use this:
<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Small Group Entries'), t('Your help message.'), false, false)?>
<div class="ccm-pane-options">
   <p><?php echo t('Pane options go here.') ?></p>
</div>
<div class="ccm-pane-body ccm-pane-body-footer">
   <p><?php echo t('Your pane contents go here.') ?></p>
</div>
<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper(false); ?>


Here's a link to the c5.5 style guide:
http://www.concrete5.org/documentation/developers/system/style-guid...
tciweb replied on at Permalink Reply
Exactly what I needed!!! Thank you so much!