Closed (fixed)
Project:
Submenu Tree
Version:
6.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2008 at 12:11 UTC
Updated:
23 Jul 2008 at 10:56 UTC
Hi, thanks for a wonderful module.
Just a quick question (to which the answer might be obvious, am not that much of a coding hero...)
I have the block enabled, and it shows up (after some fiddling). That part is nice. However i would like the parent menu item to show up as block title.
Say i have a primary navigation containing a link to a documentation page, i would like this page's subpages to display documentation as block title.
Would that be possible?
Thanks.
Comments
Comment #1
bengtan commentedHi,
I'm not quite sure exactly what you mean, but I'll try to answer the best I can.
If you are displaying submenu or siblingmenu trees in a block, you can set the block title to any arbitrary text in the node's menu->submenutree section.
Furthermore, you can set the block title to any arbitrary text in Site Building->Blocks. This overrides anything you may have set using the technique in the immediately preceeding paragraph.
Does this help? Or have I misunderstood your question, and would you like to clarify a bit?
Comment #2
br4t commentedThanks for your reply.
My explanation was perhaps not too much to the point.
I know you can use the block manager to set the block title.
However i wish to use the "parent menu item name" as block title.
If i would have a parent menu item called "paper" with submenu items "books" "magazines" "newspapers". I would like my submenu/siblingmenu block to show up using the parentitem name as its title.
This would result in a block with title " Paper" containing links to the submenu items.
(maybe we can use one of the drupal functions to achieve this?)
I hope this sounds somewhat logical....
Comment #3
bengtan commentedIf "paper" is a node with children of "books" "magazines" "newspapers", and you enable submenutrees for "paper", when you view node "paper", it will also show a block with the title "paper" and links "books" "magazines" "newspapers". That is already the behaviour.
Comment #4
br4t commentedMine just displays "submenu" when i leave block title empty (submenu is what i priorly named it to see if it was echoed)
Shall dig into db and see if the value got stuck somewhere....
And yes, it did.
Removed it and my problem is solved.
THanks!
Comment #5
bengtan commentedHmmm... did you have a caching issue, then? If so, I'd like to know as it may indicate a more subtle bug.
Comment #6
br4t commentedCannot confirm whether or not it was a caching bug, even though it seems to be so.
However, the problem seems to persist with my sibling menu.
I have set up my sibling items, and the block.
However, the block does not appear (the manually entered title by it self doesn't show either)
This goes exactly the same as the first time (with the submenu).
--
More info:
I have manually added the title : SiblingMenu.
Which gets stored in the table blocks.
Somehow it does not get echoed as i'd expect....
Comment #7
bengtan commentedHi,
Try to clear the cache by doing the following and see if it makes a difference:
Goto Admin -> Site Configuration -> Performance, and click "Clear cached data" at the bottom.
Comment #8
br4t commentedDone.
Still no appearance of my sibling menu....
Comment #9
bengtan commentedHi,
My apologies.
Your current issue with the sibling menu is:
a) a different bug from the original one you posted about.
b) a duplicate of http://drupal.org/node/272518
I've made a new release 6.x-1.2 which should be available in a few minutes which fixes this.
To upgrade from 6.x-1.1 to 6.x-1.2, simply overwrite the 6.x-1.1 files with the 6.x-1.2 ones.
Please give it a try and let me know how you go.
Comment #10
br4t commentedThanks.
It works now.
Looking good!
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.