Help Icon in Edit Bar

Permalink 1 user found helpful
Hi there,

Is there a way for me to;

(a) Hide the Help Icon in the top edit bar on the right?
(b) Hide the Add page icon in the top edit bar on the left?

I've searched all over the forum for an answer to this.

Many thanks is anticipation

 
jgarcia replied on at Permalink Best Answer Reply
jgarcia
The menu bar is loaded using /concrete/tools/page_controls_menu_js.php. You would need to override this file by copying it to /tools in your C5 install and editing from there. There's not anyway to configure the Add Page/Help icons, you just have to edit this file.

Add Page link is generated on line 97 and Help link is generated on line 88 (Concrete 5.4.0.5)
webfeet replied on at Permalink Reply
Thats great, thanks for that.
Steevb replied on at Permalink Reply
Steevb
Update for 5.4.1.1

to remove the help icon in edit bar copy /concrete/tools/page_controls_menu_js.php to your /tools/page_controls_menu_js.php.

Find line 102 and remove this bit:

menuHTML += '<li><a id="ccm-nav-help" dialog-title="<?php echo t('Help')?>" dialog-on-open="$(\'#ccm-nav-help\').removeClass(\'ccm-nav-loading\')" href="<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/help/" dialog-width="500" dialog-height="350" dialog-modal="false"><?php echo t('Help')?></a></li>';
aprobert replied on at Permalink Reply
Once again, the concrete community has been incredibly helpful. "55", I followed your advice and it worked great for me (with two slight changes)
1. That line of code is now found on line 114, and
2. I had to make sure that line was removed in /tools and /concrete/tools

Again, thank you so much for your help.
aprobert replied on at Permalink Reply
I've updated to 5.5 and I'm trying to hide the "Dashboard" on the edit bar from users. I'm having a hard time figuring out how to do that, so as an alternate plan, I thought I'd try to just remove it from the edit bar. I tried to follow the same idea you proposed for removing other things from the edit bar. I went to concrete/tools/page_controls_menu and deleted the following lines of code:

<?php if ($dh->canRead()) { ?>
<?php if ($c->isMasterCollection()) { ?>
menuHTML += '<li><a id="ccm-nav-dashboard" class="return-to-pagetypes" href="<?php echo View::url('/dashboard/pages/types')?>"><?php echo t('Back to Page Types')?></a></li>';
<?php } else { ?>
menuHTML += '<li><a id="ccm-nav-dashboard" href="<?php echo View::url('/dashboard')?>"><?php echo t('Dashboard')?></a></li>';
<?php } ?>
<?php } ?>

Keep in mind, I don't know any programming, so please don't laugh too hard if what I did was ridiculous. Anyway, it did not remove the "Dashboard" from the edit bar. It didnt' have any affect that I noticed.

Do you have any suggestions? Thanks for your help.