Active
Project:
Category
Version:
5.x-1.x-dev
Component:
Wrapper modules
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2006 at 15:52 UTC
Updated:
3 Nov 2011 at 15:31 UTC
When I create a view according to Jaza's instructions and use it a container the listings of nodes don't show on the category pages (only on containers). It used to work fine a few months ago. Has anyone else experienced this problem?
Comments
Comment #1
drurian commentedWhat, no one else has this problem? I checked it on two installations and on both a view (listing of nodes) shows only on the container page, not on the category pages. I use the latest versions of Category and Views modules.
Comment #2
vlajko commentedI am having the same problem. Container page shows view, but all categories are listed - not only categories defined in this container. If I do "In the arguments box, add taxonomy: term ID as an argument." then view is not displayed at all.
Comment #3
lias commentedI've just experienced this problem with an updated version of drupal from 4.73 to 4.74. Prior to upgrading to 4.74 and the latest category.module (October 1, 2006 - 20:00) I was able to add content/nodes which would then be displayed on my category using a custom view I created.
Now, the nodes no longer appear as list items on the category's page even though the nodes are appropriately added to the node count on my TOC. I have the following enabled for container display:
-Show assigned node count in TOC
-Show links to categories on assigned nodes
-Show node listings
When I removed the custom view from the container it started to show the nodes on the category page again although not the way I'd ideally like to see them listed.
Something fishy happened during the upgrade and I'm starting to think it may actually be the views.module rather than the category module since the category does display the node once I've disabled category views or maybe it is category views module?
Any ideas or direction would be greatly appreciated.
Lsabug
Comment #4
lias commentedIn trying to nail down the problem with my views list not displaying I think it may have something to do with the argument filter. I'm using taxonomy:TermID and this argument:
if (arg(0) == 'node' && is_numeric(arg(1))) {
return array(arg(1));
}
and under filters I've got
--Node type is One of Form (cck content type)
and --Node distinct is distinct
The only field I want to show is the title. When I use the taxonomy:termID argument my list disappears but when I delete it I then get every content type regardless of category the content type falls under.
And this started when I upgraded from 4.7.3 to 4.7.4
?
Lsabug
Comment #5
drurian commentedThe problem persists in 5.0. Views don't show either on container or category pages.
Comment #6
superstar commentedI have the exact same problem with category_views in drupal 5. I am trying to track it down, but it is difficult with no stack trace in drupal of course.
and listings of categories without views look like crap - to put it nicely.
Comment #7
superstar commentedI have found out how to make it work in 5.0:
After creating the appropriate view and noticing that the categories nodes were not being displayed in the view, I enabled the setting that makes other content types into categories, and after creating those (e.g. a page as a category), THEN it displays the view properly.
All other nodes display ok. I think it may be just a hole in our understanding, and could be patched with some updated documentation.
Cheers,
Nick.
Comment #8
superstar commentedAfter a bit more experimentation (on Drupal 5 and category), you can make ANY node type, category or otherwise show up in the view, but you must select a parent category in the categories section of the node. If you don't select this then the category or category type node will only appear in the TOC.
The category dropdown for the container (in the categories section of the node) will not show up unless you have enabled that node type in the container properties.
Good Luck.
Comment #9
kimadactyl commentedI've been having this problem too. Boo!
Comment #10
Jaza commentedFix in progress.
Comment #11
Jaza commentedFix committed to HEAD and 5.0 for this issue. In the CVS commit message, I accidentally said that this was fixed for 4.7 also. That was incorrect - the problem did not exist in 4.7. Thanks.
Comment #12
Natalie@drupal.ru commentedAm I doing something wrong? I follow instructions on the category website but still the nodes don't show on container and category pages if I try to use a view. I'm using Drupal 5.1 and Category 5.1.1 Are there some other settings I've missed?
Comment #13
fossilfool commentedThanks Jaza for addressing this bug. But I also found that it's not quite ready:
When I create a view, called "filterbyproduct" in which I am attempting to only show nodes having to do with product A, zero nodes show up in the View. To do this, I tried filtering by Taxonomy: Vocabulary Name, Taxonomy: Term, and Taxonomy: Terms for Products.
However, when I filter by "Book: Parent Node", it does work, sort of. The only tricky part about using Book:Parent Node to filter by is that it shows node numbers, not their names.
Again thanks for your work on this module. It really seems like it's almost there in terms of being both a reliable and powerful solution for creating sites.
Comment #14
fossilfool commentedAlso, I wanted to add that I took a look in my MySQL database and found the following:
In term_node (the table responsible for associating nodes with taxonomy terms, my nodes were getting associated with tid = 1.
However, in category_node (the table responsble for associating nodes with categories) my nodes were getting properly associated with their category id's.
Hopefully this will help pin down why Category doesn't play nicely with Taxonomy dependant modules at the moment. (Tagadelic is another example).
Comment #15
fossilfool commentedI filed the last point, with a little more detail, as a separate issue:
http://drupal.org/node/115783
Comment #16
sym commentedI can't tell if this is the same issue, but on a fresh install (and tested on 2 dev sites) category_views just doesn't work at all. I have used it a few times before, and I have checked the set up against the category web site and I am sure I have it set up correctly with no cache problems (cleared all drupal cache as well as browser cache).
The category_views field set shows on the container edit page, but no matter what I do to the view or the container I cannot get the view to display on the container page or the category page.
Should I create a new issue for this, or are they related?
(php 5, drupal 5.1, views and category drupal-5 cvs tag updated today)
Comment #17
JohnG-1 commentedI'm also experiencing no nodes listed in TOC of containers or categories - only (sub) categories are listed in TOC. (Drupal 5.0 with Category 5.x.1.1)
I am, however, getting teasers of all child nodes displayed between the category 'TOC' and the 'add child category', reminiscent of 'taxonomy/term/N' view.
This may also be related :?
When I go to node/N/edit (in this case an image node) the only config I have for 'Categories' is the select category dropdown list. I would have expected a 'Parent' selector and a list hierarchy 'Weight' selector too; ala 'Category Information' controls. Unfortunately 'Category Information' controls do not appear on nodes which are not themselves categories or containers, ie ordinary nodes that I just want to drop into the category and/or outline.
Ordinary nodes are also missing from the controls at admin/content/category/list/outline
Comment #18
bdragon commentedAssigning to self, looking into this for fossilfool.
Comment #19
raychaser commentedAny news on this? I'm so sure that I followed the instructions on the 'Category' website to the letter and I've been trying to trace the problem myself with no luck.
Comment #20
raychaser commentedI found out a bit more by running the view manually:
I added two field terms just to see what drupal was using for the TID :
Taxonomy: All Terms,
Taxonomy: Term
While the 'all terms' field showed proper categories the 'term' field was blank everywhere. Could it be that the view is working perfectly but not able to find any views after the filter? It could be that the first element in the taxonomy terms array is null or blank and that means that views can't do anything but filter everything out.
Further evidence for this: when I selected 'Summary, sorted as view' as the default for the argument it showed all my nodes but said they were uncategorized. hmmmmmmmm
Comment #21
sym commentedI'm confused about this: there seem to be a lot of issues marked duplicate of http://drupal.org/node/57821 including http://drupal.org/node/85022 (the problem I am having).
Are they all related, and this this the place to deal with it, or should I reopen http://drupal.org/node/85022
Anything I can do? Patches to review?
Thanks!
Comment #22
js1 commentedI may be suffering from this bug, but I'm also not quite sure how category_views is suppose to work. I'm running views-5.x-1.6-beta4. I've gone through a couple of the tutorials on Views, and I'm certain Views, despite being a beta release, works as expected on my Drupal installation. I've also followed the instructions at for Using views with category. My question is, when I click through Administer->Content Management->Categories->MyContainer, should the page render as defined by the view I created following Jaza's instructions? If the answer is yes, then something isn't working right because I'm only seeing the default container view for MyContainer. If the answer is no, then how do I get MyContainer to render as defined by the custom view I created?
Comment #23
Rob_Feature commentedAny News on this?
I've been wrestling with it for a week until I found this issue. I assumed I was doing something wrong. Can anyone speak to the status of this?
Comment #24
js1 commentedI think I may have figured this out Or, at least gotten a View to display my Category content. Here's what I was trying to do...
ContainerA (CategoryA-1, CategoryA-2, ... CategoryA-n)
I wanted a view to display the contents (Types) of ContainerA. If you follow the tutorial, the first problem you run into is the Argument section. For Argument, the Type has to be "Taxonomy: Term ID" as pointed out in the tutorial. Also, it seems like "Display All Values" is the only Default that works; this wasn't made clear in the tutorial. I wasn't able to get any of the others to work. So, I'm not sure if that is a bug.
The other problem, which I think is what the other people on this thread are referring to is the Filter section. When you select "Taxonomy: Terms for ContainerA," you have to select one and only one of its categories under Value. But, obviously, I want to display all the categories in ContainerA. Plus, what if I want to also display contents from a ContainerB?
So, what I ended doing is creating a ContainerC (a meta-container, if you will) where its categories apply to Category Types.
ContainerC (CategoryC-1, CategoryC-2)
Since categories in ContainerC applies to Category Types, I just tag the categories in ContainerA and ContainerB with the approrpriate category from ContainerC. i.e.
CategoryC-1: CategoryA-2, CategoryB-3, ...
CategoryC-2: CategoryA-4, CategoryB-7, ...
So, now I go back and create a CategoryC-1 view and select as the filter "Taxonomy: Terms for ContainerA" and CategoryC-1 as its Value. Same for CategoryC-2. This seems to work for both Block and Page view. The problem I see with it now is ContainerA and ContainerB also seem to show up in the view when I only really want the categories of those containers.
So, to reiterate, the two problems I seem to be running into here is "Display All Values" is the only Argument Default that works. And, containers that weren't tagged by the meta-categories also show up in the view.
Comment #25
js1 commentedThat should read Taxonomy: Terms for ContainerC not ContainerA.
Comment #26
Renee S commentedI too was having this problem - view created, yet it wasn't appearing on the category or content pages.
Three things I discovered:
1. There's no simple way to have a per-category view - it's one view on all the categories within any given container.
2. You MUST check "Show node listings" or the view doesn't show up.
3. You can sort/filter the view based on Category ID or Container ID or parent directly, if you apply the code here: http://drupal.org/node/85984.
Comment #27
Renee S commenteder, sorry, for Step Two that's "Show node listings" in the Container's "Category Display settings"
Comment #28
mathieu commentedsubscribing .. and resetting title to it's previous/correct value.
Comment #29
solutiondrop commentedsubscribing as I've been experiencing the same problem.
Comment #30
lias commentedalso subscribing for same reasons.
Comment #31
bdragon commented