unn / taxonomy_menu Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://drupal.org/project/taxonomy_menu
Home Page: http://drupal.org/project/taxonomy_menu
Imagine we have 2 level vocabulary.
Cat -> SubCat
SubCat has 10 nodes.
Counters will look like
Cat (0) -> SubCat(10)
There is no logic in that behavior, for user there 10 posts or 20 if there is another sub category with 10 posts within. But not 0.
It seems the type of the module inside the composer.json is wrong, as the module is installed under vendor and not under modules/contrib when running composer require drupal/taxonomy_menu
on a Drupal 8 installation. Having the module installed under modules/contrib seems necessary for Drupal to be able to pick up the new module when using a composer based installation and not using Drush?
composer.json actual:
...
"type": "module",
...
expected:
...
"type": "drupal-module",
...
This was using the 8.x-3.x branch
In other words, what is new in 2.x?
For anyone comes to this for reason taxonomy menu doesn't work with block, please check your block config page to see if the block visibility filter is duplicated with content types and content type, this is a mirror bugs of ctools. Before you to address the taxonomy menu block, please make sure your base root menu name you mapped to vocabulary is different with the vocabulary. If you applied the ctools patch and the vocabulary name is different with taxonomy root manu name, then the block will shows up as it should be.
I came across this problem and it takes me hours to find reason, I posted here in case anyone got this problem like me. Didn't know where should I post, the D8 document of taxonomy menu is not inited yet, so I write it here.
I am not sure if this should be added in issue queue at all. So sorry about it. May be marked as a feature request, if not somebody has already done it!
I created a taxonomy-menu
with vocabulary category
which has several taxonomy items defined under it. The configuration looks like:
Vocabulary -> Category
Menu -> Main Navigation
All menu entries -> Checked
Depth -> 1
Parent Menu Link -> Main Navigation
All taxonomy items are rendered as separate top level (level 0) menu items. My guess was it will use Category
as parent item and under it the taxonomy terms will be added as sub-menu items.
Then I tried this:
Vocabulary -> Category
Menu -> Main Navigation
All menu entries -> Checked
Depth -> 1
Parent Menu Link -> Products
/products
is a View page where all products get listed. In Page view source
I did not see any taxonomy term got rendered.
Is there a way to do this?
NB: I rebuilt cache after making every change to taxonomy-menu
.
UPDATE:
Because it creates separate menu items I dragged them under my Products
menu from /admin/structure/menu/manage/main
but after saving the tree structure resets and taxonomy menu items comes back under root.
Is there a change to bring Back the possibility of Hiding Empty Terms for Taxonomy Menu for Drupal 8?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.