active menu item and block links

milos1234 - March 15, 2009 - 22:17
Project:Frequently Asked Questions
Version:6.x-1.8
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi, great module! i just have two questions.

1) how can i keep an active 'top level' menu item when viewing a particular FAQ Category (am using FAQ Category Block)

2) the random FAQs block creates links to the individual FAQ node. Is there a way to link these to the FAQ Category

thanks!

#1

stella - March 16, 2009 - 10:44

1) can you elaborate?

2) in the latest dev version, I think if you "Disable question links to nodes" on admin/settings/faq/questions then the links in the faq block will link to the faq page instead. You may also want to use the FAQ categories block rather than one of the FAQ questions ones.

#2

milos1234 - March 16, 2009 - 11:11

hi Stella
thanks for the quick reply, here is the problem explained a bit better...

1) for the active menu question:

after activating and setting up the Frequently Asked Questions module, I created a top level menu item with a title of 'FAQ', this points to the mysite.com/faq. When viewing this page i see all the FAQ's listed, and the 'FAQ' menu item is active, and highlighted in my css. great!
Also, once you are on that page, in the lefthand sidebar, i have a sort of Sub Menu which is made up of the modules FAQ Category Block.
When i click on one of the FAQ Categories, the 'FAQ' menu item in the top menu is no longer highlighted.
Just wondering if there is a way to setup this module so a Top level menu item can stay highlighted no matter what page of the module you are viewing.

2) Links to FAQ page:
I am using the latest stable release. And have checked the box next to "Disable question links to nodes". But it doesnt seem to create the links to the FAQ page. It still links to the individual node.
Does the behaviour of the dev version differ for this?

many thanks!

#3

stella - March 16, 2009 - 11:43

1) hmmm I can't think of any easy way to do this at the moment

2) yes the dev functionality differs slightly

#4

milos1234 - March 16, 2009 - 18:50

an update:

1) i solved this, rather simply, by moving the menu item the module created in "navigation" menu, to the menu in my sites top level. After that, when viewing categories, the top level item remains "active". maybe this could earn a brief mention in the documentation, as i imagine this could be a fairly popular setup of the FAQ module.

2) i tried out the dev version, but this seems to remove the links all together from the blocks. this would be ok, if i could solve the problem below.

3)
is there a way to insert the category title above each FAQ in the "random FAQ" block?

so the modified block would display (randomly):

TITLE: Random FAQs
Category 1
- My Question
Category 3
- Another Question
Category 1
- Yet another question
- [link to all FAQs]

many thanks for your support with this great module!

#5

brankoc - October 24, 2009 - 18:30

Re 1: I seem only to be able to highlight the FAQ category link when I am on that particular FAQ category overview, not when I am looking at a node (this is in D6).

The fix would seem to be to use the Menu Trails module, which will keep all the parent items in the menu for a certain node "active."

When you use Menu Trails, keep in mind that it doesn't set the "active" class on the A element, but rather an "active-trail" class on the parent LI element in the menu.

 
 

Drupal is a registered trademark of Dries Buytaert.