White labeling - Can we hide "News" link?

Permalink
Hi C5 Crew,

Just playing around with the new white labeling features and everything is dead easy now you have the new runtime settings that we can add to config/site.php.

I am curious about one thing though...

I have added the following (among others) to site.php as a test:

define('ENABLE_NEWSFLOW_OVERLAY', false);
define('ENABLE_APP_NEWS', false);

These seem to work however I am now wondering how you remove the link from the bottom of the dashboard menu...(see attached)

I have managed to hide System & Settings and Extend Concrete5 links from particular users by creating new user groups and assigning the relevant permissions to those items but I cannot not see a sitemap item for the "News" link...(See attached)

So...where can I control its display?
I do not necessarily wish to hide it from everyone, just editors for example but without it being in the site map and with config/site.php not having a definition for that I wonder how I can proceed without modifying source.

Setting sitemap/permissions combo would be preferable...

Any ideas?
Cheers, Lu \m/

2 Attachments

lurobertson
 
melat0nin replied on at Permalink Reply
melat0nin
Did you manage to solve this? I'd like to do the same.
Rob7 replied on at Permalink Reply
The only solution I have found so far is as follows but it's a bit of a hack, may need to be redone as and when C5 is updated.

Will be interested if there is a tidier solution to this. Take usual precautions of backup, use overrides.

1. To remove from dashboard button

open \concrete\helpers\concrete\dashboard.php
line 515, isolate the following:
menuHTML += '<li id="ccm-nav-intelligent-search-wrapper"><input type="search" placeholder="<?php echo t('Intelligent Search')?>" id="ccm-nav-intelligent-search" tabindex="1" /></li>';


2. To remove from dashboard page
open \concrete\single_pages\dashboard\view.php
line 61, isolate the following:
$newsPage = Page::getByPath('/dashboard/news');
   $newsPageP = new Permissions($newsPage);
   if ($newsPageP->canRead()) { ?>
      <div><a href="<?php echo Loader::helper('navigation')->getLinkToCollection($newsPage, false, true)?>"><strong><?php echo t('News')?></strong></a> - <?php echo t('Learn about your site and concrete5.')?></div>