When I installed the FAQ module, it auto created a menu item in the main navigation menu titled "Frequently Asked Questions". I wanted that under the Create Content menu as it linked to the node add form. I moved it in the usual way. Then I renamed it to "Answers". All of the sudden, the path is to /answer or /faq and not to /node/add/faq. I can't edit the path because the module creates it. I tried resetting, but it did not work. Then for some reason the FAQ module re-added another "Frequently Asked Questions" outside of the one I just created. It also points to the wrong path. So now I have 2 menu items create by FAQ and neither go to the right place and I can't delete them. I had to create my own menu item and disable the two created by FAQ.

CommentFileSizeAuthor
#4 Snap1.png8.05 KBJeremyL
#1 Snap1.png21.65 KBJeremyL

Comments

JeremyL’s picture

StatusFileSize
new21.65 KB

I tried turning off the module and running the uninstall script and re-installing from scratch. That just made things worse. Right now I have 3 menus created by FAQ. See the attached screenshot.

"Answers" was created, I just changed the name. for now, the link goes to right place.
"Create Content" was created, I think when I unsinstalled and it goes to "/node/add" now which of course is an error.
"Freq Asked Ques" goes to straight "/answer" which is the alias I setup on top of "faq"

I have no idea how to fix it to delete the bad menues or why this is happening.

stella’s picture

Category: bug » support

The FAQ module provides two menu items - 'node/add/faq' which appears under 'Create content' and 'faq' (the page displaying the questions and answers entered) which by default appears in the Navigation menu.

You shouldn't change the 'node/add/faq' path (other than the title), as it may break things.

The '/faq' menu item (Frequently Asked Questions) is not related to the node/add form. Rather than renaming this path, I would just create an alias at admin/build/path I don't understand why you would want this menu item under 'create content' as it doesn't, well create content, only displays it.

As for your existing broken menus. Re-installing the module should have helped. However, if you have the 'devel' module installed, it provides a block which contains a menu item to allow you to rebuild the menus, so you could try that. You could also try the 'reset' link beside the menu item in question (as shown in the screenshot you provided). Failing that, just disable the bad menu items.

Cheers,
Stella

JeremyL’s picture

Status: Active » Closed (fixed)

Tried starting fresh and didn't have the problems again, so closing.

JeremyL’s picture

StatusFileSize
new8.05 KB

I'm opening this back up because the FAQ module is still randomly creating new menu items post install. Here is an example. When I re-installed the module, I disabled the User menu to the faq page because I only use the navigation menu for admins and no other menu items are visible to non-logged in admins. I just disabled the FAQ module made link. Then today, I see the link seemed to be back all on it's own. I checked the menu and see the FAQ link has added another menu link on it's won. See screenshot.

Note that the old one pointed to "/faq" and the new one points to "/answer" which is the alias I setup. So it seems to module is looking to see if it's menu items is there and re-creating it if it can't find it. I can understand this on install, but why does it keep doing this after install? Also, why does it not recognize the menu item is still there? Only the alias changed, not the menu item it created.

stella’s picture

I think these questions are better asked of the menu module. The FAQ module doesn't do anything special with respect to menu items. It just defines the menu items already mentioned above via hook_menu.

However, why not just disable the menu item using the checkbox provided?

Cheers,
Stella

JeremyL’s picture

I did disable it, then it was automatically added back in as can be seen from the screenshot.

I think the addition of the user menu item should be removed from the code because it doesn't seem to play well with the menu code. If I was to change the path alias to the FAQ page, the menu item would be re-created for a third time, all by itself.