Hi,
Firstly I must complement all the hard work on this fine product. Best open source CMS I have used thus far!
I noticed an issue within the aggregator node, at least in my installation. The aggregator "categories" node appears no matter what I do in terms of disabling it in the menu, or moving it as a child of the administration node. It by default appears under "navigation".
The aggregator categories node does not appear as a block, and cannot be hidden or moved to different areas of the content space (header, footer, sidebar, etc.) The aggregator feeds however can appear fine and will disappear when disabled in the menu, etc... However I cannot disable the aggregator categories menu item itself in the menu.
Under the menu option, I tried moving the categories node underneath "administration" to see if it could only appear upon logging in. This did not work, regardless of whether I was logged in. I ended up changing my block.tpl.php and moving all navigational elements into a separate menu.
Thanks for your consideration.
block.tpl.php code:
<?php
//CHANGES 20060525 - BN - Fixes bug in which Navigation categories display and not able to render them invisible via menu (not considered a block), deleted certain block titles, and cleaned code up a bit.
$divBlockString = "<div class=\"block block-".$block->module."\" id=\"block-".$block->module."-".$block->delta."\">";
global $user;
if ($user->uid) { //user logged in, show all
print "".$divBlockString;
if (!in_array($block->subject, array("Poll"))) {
print "<h2 class=\"title\">".t($block->subject)."</h2>";
}
print "<div class=\"content\">".$block->content."</div></div>";
} else { //user not logged in, if the block title is Navigation, don't display anything, else display normally
if ($block->subject != "Navigation") {
print $divBlockString;
if (!in_array($block->subject, array("Poll"))) {
print "<h2 class=\"title\">".t($block->subject)."</h2>";
}
print "<div class=\"content\">".$block->content."</div></div>";
}
}
?>
Comments
Comment #1
buddaMoving to the right project tracker.
Comment #2
magico commentedThis guy disapeared...
Comment #3
two2the8 commentedThis problem still exists in the current aggregator module as well. It's very inconvenient not to have the ability to just disable the 'categories' menu item.
Comment #4
two2the8 commentedUnfortunately, problem still exists.
Comment #5
magico commented@two2the8: could you please confirm if it exists in the current HEAD? We have now a Drupal 5 Beta 1 and we should make every possible efforts to make it out with less bugs.
Comment #6
two2the8 commentedwill check it out.
Comment #7
ChrisKennedy commentedThis does still exist in HEAD. I was trying to disable it earlier today and couldn't figure out why it wasn't possible.
Comment #8
ChrisKennedy commentedThe categories menu is set to MENU_ITEM_GROUPING so it should be disabled automatically if it has no sub-items to display. The functionality does work correctly for node/add (the only other menu item in core that uses this option), but not for the aggregator.
Comment #9
marcingy commentedThis seems to be fixed under 5.1 the menu item is disabled on the site I work on.
Comment #10
mustafau commentedI can disable it from "admin/build/menu/item/%item/edit".
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.