2

I'm currently using drupal 7. I want to create an album gallery with different category. I wish to put "Albums" in the main menu, with the categories as sub menu under "Albums".

I had created a content type "Album", and plan to use taxonomy to creating vocabulary and terms as category.

However, I wish to make it automated. Once I create a album category, it will automatically appear in the sub menu under "albums". And each category will link to the list of albums under the category.

Anyone knows how to achieve the effect?

5
  • is your album path like taxonomy/term/xx or you used views and another path for album pages? Apr 4, 2012 at 9:23
  • I'm using the normal node. For example, "album 1" and "album 2" is in category 1. The path for album 1 is xxx.com/node/1. Path for the list of albums under catergoty 1 is taxonomy/term/1. I want to add taxonomy/term/XX under the main menu "album".
    – vences
    Apr 4, 2012 at 9:54
  • 3
    its seams you look for drupal.org/project/taxonomy_menu Apr 4, 2012 at 9:57
  • Is it add in another menu block? Can I put it in the list of primary menu?
    – vences
    Apr 4, 2012 at 10:01
  • You can append your taxonomy menu anywhere in the menu hierarchy. (So, yes, you can put it in the primary menu).
    – davidcl
    Mar 4, 2013 at 23:29

2 Answers 2

2

For an action that is caused by an event I would use the Rules module.

Create new rule

Set rule name, etc.

Set event to act on - saving new term

Set a condition - term is in vocabulary album

Set action - add menu item

These options may not all appear with just Rules. You may need additional rules modules to get some of these events, conditions, or actions to be available (I think there is one for menus and one for taxonomy, but they may be built in to rules i can't remember.).

Take what I said as a starting point to put you in the right direction. Definitely sounds like what you want can be done with Rules.

2
  • Thank you so much! I'm going to read through this module, and apply it on my work!
    – vences
    Jun 6, 2013 at 3:50
  • @vences No problem. Let me know if you need help configuring.
    – CR47
    Jun 8, 2013 at 21:52
1

it seams you need custom module, try rebuild menu on taxonomy term CRUD operations,

create new module and implement this hooks:

1
  • I see. Any documentation as a guide line for me to refer?
    – vences
    Apr 5, 2012 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.