"Category" and "Container" are not showing up neither under Fields, nor Filters, nor Sort Criteria settings when creating a new View (the same problem with either Views 2 and Views 3 module).

I want to use them as replacement of "Taxonomy:Term" and "Taxonomy: Vocabulary" fields. But this means that "Category module" actually cannot fully replace Taxonomy if I want to create new views.

P.S. I have installed all six submodules of 6.x-2.0-rc2: Category, Category Breadcrumb, Category display, Category menu, Category re-save, Category views. The same with or without Book Wrapper and Taxonomy Wrapper.

P.P.S. The documentation site (http://category.greenash.net.au/docs) is not working.

Comments

JirkaRybka’s picture

Category: bug » support
Priority: Critical » Normal

Unfortunately, Category module seems to be nearing the end of its lifespan, given that the maintainer announced he'll not provide a 7.x version (unless someone steps forward to do that). That's one of the reasons, why the 6.x version is not complete, and probably will not be (?)

Anyway, what you are asking for, is a Views integration for native Category tables. This feature never gone as far as being included in the module. There were some attempts to do that in the 5.x era (nearly-complete code for Views 1 / D5 existed somewhere in the issues), but it never got finished. That's also because people don't really need that at the moment - just install the Taxonomy Wrapper (in Category settings), and (nearly) all taxonomy-dependent modules should work. The wrapper maintains a mirror of category data in the Taxonomy tables, for other modules to see. Views is no exception, so with the Wrapper module running, you can safely use the Vocabulary/Term items in Views. They work the same way as Container/Category would.

Actually, a patch for 6.x version exists in the queue as well: #57821: Category + Views Integration It might work well or less well, I don't know. You may help with that issue if you wish, as there is currently almost no-one working on Category module, but I doubt whether it's worth the effort.

I'm turning this issue to a Support request, as otherwise it should be a Feature request, and Duplicate too. There's nothing broken, only just missing (and always was).

reinis.berzins’s picture

Thank you very much for advice!

I already started to think I was doing something wrong, because strangely in my case the Taxonomy Wrapper didn't create any new vocabularies or terms. I checked both in the Taxonomy and Views > Field > Taxonomy: All Terms > Limit to a vocabulary - only the vocabularies I previously created myself manually were displayed.

Probably I will reinstall the Drupal and try again.

JirkaRybka’s picture

Well, the wrapper only keeps tables synchronized on-the-fly, it doesn't do anything about existing data if you install it later. To synchronize all data (to the Category state - i.e. Containers and Categories), the category_resave module (a batch operation) should help.

If you had some Taxonomy data (i.e. Vocabularies and Terms) created before, then you'll need the category_legacy sub-module to import these properly - even if you don't want these to be kept, it's not a good idea to let them hang around in your Taxonomy tables (Views will see them, but they won't really work without core Taxonomy). Bad news here: The category_legacy sub-module is not ported to the 6.x version yet, so the operation is currently not available. So, if you have old Taxonomy data, I suggest deleting it all - either truncate (empty) the database tables term_* and vocabulary_* (rough, quick way), or uninstall the Taxonomy Wrapper for a moment (to restore core Taxonomy module), and delete all the terms and vocabularies (be sure to work with Taxonomy and not Category - you'll have both at the moment!), then install the Wrapper again. Now, with Taxonomy Wrapper running and Taxonomy tables empty, run category_resave to populate Taxonomy tables with up-to-date mirror of category data, without old Taxonomy entries hanging around.

Note that this might be still problematic, if you run some Taxonomy dependent modules that keep own records related to Taxonomy items - most notably core Forum module, and Image Gallery (there may be more such modules, perhaps Simplenews and some I don't know about). These work fine with Category (with wrapper), but fixing this out-of-sync state here might involve deletions/edits in their own tables, and in variables table, so in this case it's better to start from scratch again, if possible at all.

Don't forget to keep backups, this is rather wild stuff to do...