Nice Taxonomy Menu is useful to generate well formed vertical menu blocks to represent taxonomy trees and make access quickly to their related contens.

Anytime you generate a new Nice Taxonomy Menu, the module generated a new related block for displaying it.

Leaf terms in the tree (that belong to a specific vocabulary) have a link you can customize: for example, you create a simple view (with a page visualization) on nodes which have a field that is a "term reference" to the same vocabulary, with a contextual filter related to the sema field. Then you put the URL of the visualization in the "Link URL" of the Nice
Taxonomy Menu. Every time you click on a leaf, the page loads your view's visualization page passing the correct tid for filtering.

Javascript code inside the menu generates a minimal animation for collapsing and expanding the intermediate elements.

Every Nice Taxonomy Menu contains CSS classes that make the display customization very easy.

Versions:
Drupal 7

Commits for Context URL:
https://drupal.org/node/2080639/commits

Project Page:
https://drupal.org/project/nice_taxonomy_menu

GIT link:
git clone gianfrasoft@git.drupal.org:project/nice_taxonomy_menu.git nice_taxonomy_menu

Comments

trrroy’s picture

Can you provide a link to the sandbox?

PA robot’s picture

Status: Needs review » Needs work

Link to the project page and git clone command are missing in the issue summary, please add them.

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

asherry’s picture

Looks like this is missing the project page link:
https://drupal.org/sandbox/gianfrasoft/2080639

And the git link:
git clone http://git.drupal.org/sandbox/gianfrasoft/2080639.git nice_taxonomy_menu

asherry’s picture

A couple things I see:

- you'll want an .install to do a hook_uninstall(). You need to add variable_del('ntm-count');
- then cycle through that count and do variable_del('ntm-node-type-' . $i);
- line 80, 89, and 102 you need a default for variable_get
- for hook_menu and hook_permission you need to indicate they are hooks. IE -

/**
  * Implements hook_menu().
  */

- add a doc comment for some custom functions like nice_taxonomy_menu_callback().

asherry’s picture

Also you need a README.txt file.

gianfrasoft’s picture

Status: Needs work » Needs review

Links added in the issue. README.txt file uploaded!

Thank you!

PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxgianfrasoft2080639git

I'm a robot and this is an automated message from Project Applications Scraper.

gianfrasoft’s picture

Status: Needs work » Needs review

Ok!

bohart’s picture

Status: Needs review » Needs work

Please fix it https://drupal.org/node/2080721#comment-7825387.
After that, status of the issue will be changed to "Needs review".

gianfrasoft’s picture

Status: Needs work » Needs review

Sorry, wrong upload.

The module is ok now. Thanks!

gianfrasoft’s picture

Status: Needs review » Needs work

Sorry, I'm experiencing problems with GIT. Soon the module will be updated.

...

gianfrasoft’s picture

Status: Needs work » Needs review

Ok, ready!

gianfrasoft’s picture

Doese anybody put status to "Reviewed & Tested...", please?!?

kscheirer’s picture

Priority: Normal » Major

I upped the priority for you, if another 2 weeks goes by you can set it to 'critical'. The best thing you can do is get a Review Bonus by reviewing other applications. That will get you to the top of the list of projects to get reviewed (and hopefully approved). Only manual reviews count, just using http://pareview.sh is not enough.

----
Top Shelf Modules - Crafted, Curated, Contributed.

jeroen_drenth’s picture

A view things I've noticed browsing quickly through your code:

  • A lot of the commenting is in Italian. Please translate these to English so we can read them.
  • You use 'und' when you get a value from a field, e.g. on line 312. You should use LANGUAGE_NONE or something like field_view_value().
  • You are setting a couple of variables on your admin page. When the module is uninstalled, these variables need to be removed. Add a .install file and a variable_del().
  • You git link in the description above does not work.

Hope this helps.

jeroen_drenth’s picture

Status: Needs review » Needs work
kscheirer’s picture

Priority: Major » Normal
Issue tags: -menu, -taxonomy

After review the status goes back to normal.

----
Top Shelf Modules - Crafted, Curated, Contributed.

kscheirer’s picture

Issue summary: View changes

added links

gianfrasoft’s picture

Status: Needs work » Needs review
Issue tags: +menu, +taxonomy

Tank you very much for your interesting.

I changed few things. See you!

AjitS’s picture

Status: Needs review » Needs work

Automated review:

pareview.sh doesn't show any issues.

Manual review:

  1. The GIT link in your issue summary points to the maintainer version of the repository. Please change it to point to the non-maintainer version.
  2. All variables set are prefixed with module name ntm%. If you have more variables set in the module, you could do something (in your hook_uninstall()) like the following to ensure that you don't miss deleting any variables:
    db_delete('variable')
      ->condition('name', 'ntm%', 'LIKE')
      ->execute();
    

    Just a thought.

  3. Its good to know that you are aware of the hook_update_N. Very rare in this issue queue.
  4. The function nice_taxonomy_menu_has_son could be renamed to nice_taxonomy_menu_has_child, as it is how taxonomy menus are referred to in the community (not a rule of thumb though). Not a blocker.
  5. Looks like in and after function nice_taxonomy_menu_contents, you are using some foreign language (Italian according to the Google translator), to comment your code. While using more inline comments is very good, we have to make sure that the mass of the users understand it. English is (and should be) used any sort of documentation on drupal.org
gianfrasoft’s picture

Thank you very much, @AjitS. I really appreciate your contribution.

I applied all the tips you gave me. I hope you are going to use my module.

If you have requests, let me know.

Bye!

Gianfranco.

AjitS’s picture

Status: Needs work » Needs review

Thank you for making the changes. But, looks like you've removed the inline comments altogether. It would be very helpful if you translate them to English. Not a blocker though.

Whenever, you've done making the changes requested the status of the issue should be changed to "needs review".

gianfrasoft’s picture

Nono, I removed just one comment: an SQL string not so much useful.

if you believe, I can add some other comments inside the code.

I'll do it at most tomorrow... Stay tuned!

Gianfranco.

centas’s picture

Status: Needs review » Needs work

Hello,

in your module uninstall function you use a query to remove variables, but I think it is better to use "variable_del".

I understand it is one line vs multiple lines, but I believe the use of API is recommended over the custom code. Plus, the function clears the variable cache.

Thanks,
V.

kscheirer’s picture

Status: Needs work » Needs review

@centas, that's a valid point, but not a blocking issue.

centas’s picture

@kscheirer, I see, my bad. Will keep in mind next time.

drumm’s picture

Issue summary: View changes

Updated links

klausi’s picture

Issue summary: View changes
Status: Needs review » Fixed

So it looks like some git administrator has already approved your account. Please tell them to got through the official channel here next time, so that we can coordinate our effort in reviewing applicants better.

Thanks for your contribution, gianfrasoft!

Somebody updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thanks to the dedicated reviewer(s) as well.

gianfrasoft’s picture

Ok! Next time I'll tell that my account have been already approved.

Thank you.

asherry’s picture

@gianfrasoft - I think I know what happened. You already got a project approved:
https://drupal.org/node/1468596

You don't actually have to go through this process to promote other modules. The project application process is really a "vetting" process, once it's proven that you can do one moderately sized module up to coding standards, you can then be trusted to do the same will all future modules of yours.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.