With the category module installed, I'm trying to display the node listings on my category pages with a custom view. I followed all the steps as described here: http://category.greenash.net.au/category_views_usage

I made a custom view with one argument: Taxonomy: Term ID and linked it with my category.

So far so good, except the nodes don't match. The behaviour is really strange. A lot of the subcategories, have the same (but wrong) listing of nodes and they all come from different containers (not the correct one).

Perhaps the problem lies in the fact that I have multiple containers?? I'm really stuck with this problem and it's eating me up. Any help would be greatly appreciated!

CommentFileSizeAuthor
#1 views_category.inc_.txt5.96 KBJirkaRybka

Comments

JirkaRybka’s picture

Category: bug » support
StatusFileSize
new5.96 KB

The Category+Views combination on 5.x works (I even managed to use Exposed filters and the like on that), but it's problematic. In particular, the Argument "Taxonomy: Term ID" in Views depends on Taxonomy tables, which are just poorly maintained mirrors in category. I had problems with that, too.

On my site, I added the attached file views_category.inc into the "modules" folder in Views package. This new file builds a direct link between Views and Category, so you can use a "Category ID" argument instead of Taxonomy, getting rid of all the wrapper modules problems. You'll be also able to use some new fields and filters, such as linked title of a category as field. Note that you should rename the file, to be just 'views_category.inc' - the rest is added only to be able of attaching it here.

But however, this file I just wrote for my site, and it isn't feature-complete. Now the 5.x version is slowly getting obsolete, so further efforts in Views integration are likely to go into 6.x branch, so I see this issue as a support request. I suggest marking it as "Fixed" if you make it work fine.