Hi Jaza,
playing even harder with your module seems i managed to find a new bug :P
1. i reproduced a hybrid structure identical to the one you propose in your tutorial, completed with hidden containers as well explained on the 3rd point (just the names are different, but structure is the same). Everything working as it should up to here: breadcrumbs work sweet.
2. not happy, i wanted to sort each 'News' by country, so:
--a. i imported with taxonomy_xml an xml list of 222 countries in a previously created 'Countries' container. Everything ok till here.
--b. i predisposed 'Sections' as multiple hierarchy, required, hidden container, and chose 'Countries' (NOTE: not 'Countries*') as 'Allowed parents' in the "Distant parents" section.
--c. in 'News' child category settings, i highlighted all the countries as 'Parent' in the "Category information" section
at this point breadcrumbs and table of contents disappear: if i go to 'Articles' no link to 'News' is shown, while if i manually enter the node URL of a submitted node, only the Home breadcrumb is shown.
I resume the structure here if can help:
. Articles [C]
. Sections [HC] Hierarchy:single, Required, Parents:Articles, Allowed Parents:Countries
--- News
. Countries [C] Hierarchy:single, Required
--- Albania
--- Algeria
--- Andorra
--- ...
Legend:
[C]= container
[HC]= hidden container
PS: . tried also with a different container other than 'Countries' with less and manually added categories
. tried changing this container displaying menu options and other settings
but nothing, the problem persists
Comments
Comment #1
Jaza commentedYour structure is... wrong. Your configuration at the moment makes no sense: why would you give the 'news' category all of the 'countries' categories as parents? What would make more sense to me, would be to make all of the countries parents of 'news'. But since there is no relationship between the 'news' category and every single category in 'countries', you only need to make the 'countries' container a parent.
So here's what I would suggest:
Comment #2
Jaza commentedComment #3
marcoBauli commentedin order to sort all news and blogs by each country. So browsing to category 'France', would display me the 'news' and 'blog' containers links containing only nodes corresponding to that country.
but this way i have to navigate to 'news', then to 'Countries', finally to the specific country.
What i am looking for is to navigate directly to specific country, then pick 'news' or 'blogs' to show nodes corresponding to that country. This sounds to me shorter/easier.
Reasoning on this anyhow, i got that maybe is better to do what i need with links in the style taxonomy/term/x,y rather than trying to do everything with the Category module.
If i understood well, each category is a "box" where you can put nodes, not a "set" that can handle boolean logic as AND/OR. To use this logic the appropriate way is to use taxonomy/term/x,y links (please correct me if i am wrong).
Ok, thank you lot for replying, since i probably understood something replying to you myself. Also pardon my english, non-techieness and newbyeness to Drupal.
Comment #4
Jaza commentedI don't think you quite understand how the category module works. Each category is a node, and each node has its own page. If you make one category the child of many other categories, then it makes no difference how you access that child category, or what categories you visit "on the way" to it - what is displayed on that page remains the same.
The category module is capable of the same boolean AND / OR queries as the taxonomy module - just go to category/x,y or category/x+y.
Comment #5
marcoBauli commentedno, i understand the module and managed to make it work fine. Is just a problem of communication...with different words,
imagine you have:
a. 222 countries in one 'Countries' container
b. schools, shops, lodgings in another 'Facilities' container.
and you want to display specific country info pages (es: Italy), and have a Table Of Content for each country linking to '.schools .shops .lodgings' pertinent only to *that* particular country, not linking to the complete list of them.
As far as my young Drupal experience goes, this is not possible just with distant parents, but i need to manually add category/term/x,y [x=country id, y=facility id] links on each country page, right?
So 222 countries per 3 facilities results in 666 manual pages and links...a hell task like the resulting number!
I was trying if there was an easier/automated way to do this with the Category module, or maybe a php snippet to insert in a category to suxeed less painfullly in this task..?
If once again i didn't manage to explain or understand some inner working of the module, than blame on me...
thank you
Comment #6
Jaza commentedThanks for the effort that you're putting into communicating your needs: I understand that it must be hard for you, with limited English and with limited Drupal knowledge. I understand what you're trying to do: you're trying to achieve something that is not currently supported by either taxonomy or category, which is "sharing" child categories between multiple parents.
I'm afraid that there isn't any easy way to do this at the moment: using a specific category/x,y query for each case is really your only option. It would be great to develop a better way to support this, but I don't have any clear ideas on how to go about it, and I don't have any plans for it either.
Good luck in getting it all to work!
Comment #7
marcoBauli commentedyes, i need some luck, even if still i am learning lot!
I'm thinking about a solution i have to check the feasibility with a developer: having "fake" empty categories or pages containing a php snippet that recalls the term id of the category of provenience, and translates it into a link of the type category/x,y).
Maybe this is totally nonsense, anyhow in case i will happen to a solution i will post it here. Killer module by the way jaza, and great patience and support ;)
respect
marco
Comment #8
venkat-rk commentedKiteatlas, I printed out this thread a few days ago in an effort to understand the category module, but your latest post (#5) has described exactly the need that has been bothering me for long.
The site I am working on has 300 members (due to the drawbacks of profile module in 4.6, I have these members also as taxonomy terms) and I have been similarly looking for a simple, automated way to show on each member taxonomy page, the following things (some of which are also taxonomy terms) in diff. vocabs: events, stories, forum postings, comments related to that particular member and any other stuff tagged with other taxonomy terms related to that member.
Jaza, here is a possible approach that comes to mind, although a lot of this is probably wild thinking:
1.) With the ability to define new block regions in 4.7, the typical listing display for a category or container page could be changed instead (admin setting?) to one that allows n blocks (admin defined?) for the main content area of a page.
2.) Each block could display relevant stuff related to that category or container. The stuff that each block should display could be admin-defined. A list of categories with boxes that one can check?
If the admin can define the related categories for an entire container (say, Container A which is Nonprofit members should display on each category page (the page for each Nonprofit), the events, requests, comments, uploaded files and stories for that member, it means whole subsites can be set up in the blink of an eye, especially if enough homework has been done to create proper contianers and categories. I don't know how to define the relationship part or what should be its UI, though.
3.) The options chosen automatically build a menu for each category (or container) page, with the parent container/category (Italy) as the top of the menu and the stuff that needs to be associated (schools, hotels etc) as child menu items, clicking on which will bring up a listing pages of nodes tagged with that category that is a child menu item. This last page could have the standard taxonomy term listing look.
In effect, the chosen category or container page becomes a mini portal. It looks to me as if category_display and category_menu could play a part here. Or, category_views?
Sorry if all this sounds wacky, but I can dream, can't I;-)