Using views with category
The categoryi_views module allows you to display node listings on your category pages using a custom view, instead of using the default node listing renderer. This is the main way in which you can achieve integration between category and the views module.
Note: neither category nor category_views currently implements the hooks provided by the views module. For this reason, in order to make effective use of category_views, you will need to have the taxonomy wrapperi installed.
Using category_views requires that you set up your custom views in a particular way. Here's how you set up such a view:
- Go to
administer -> views -> addto start adding a view. - In the basic information box, enter a name and a description for your view (e.g. Category view 1).
- In the page box, tick the provide page view option, and enter a URL for your view (e.g. view/category). It doesn't really matter what the URL is, because you won't be using it to access the view.
- Select the view type that you wish to use for your view. This will determine how the view renders your node listings on category pages. It is recommended that you tick the use pager setting. You can leave the nodes per page setting at 10, or you can change it to a value of your choice.
- In the fields box, add the fields that you would like displayed in your view. These fields are the ones that will be shown in your category listings (e.g. node: title, node: author name).
- This is the important part:
In the arguments box, add taxonomy: term ID as an argument. When using this view to render your node listings, category_views will expect this argument to exist, and will pass the ID of the relevant category as an argument to the view. The view will then use this argument in filtering its node listing. - The rest of the settings are up to you. The idea of category_views is that you have access to the flexibility of the views system, so go ahead and make the most of it! When you're done, save the view.
Once you have a custom view that's ready for use with category_views, simply add or edit one of your containeris, and go down to the category view settings box. In the view for this container setting, select the custom view that you created. Then configure where you want the view to show, with the show view on setting.
That's all that's involved in using category_views. You should now see your node listings being displayed in new and exciting ways that you never before thought possible. Enjoy!
View is displayed for category nodes but not parent container
So everything worked okay using the above instructions for categories. However when I look at my containeri node, it looks like it's using the container rendererer instead of the view renderer.
Any suggestions?
Me too
I also tried to setup a views that would show all the articles in the containeri and of course In the categoryi pages themselves...
So the container does not show any articles that are placed in other categories that are attached to that container...
I selected use this view on the container page and view as well on category pages.
I still don't see the articles themselves.
I enabled TOC on the container page, so now I can see links to the categories but still no trace of the articles attached to categories inside that container...
Am I getting something wrong here?
if an article is attached to Container > Category 1
Is the container page supposed to list articles that are attached to categories or those articles will be listed only in their category pages???
Thanks for the clarification because I thought that a container could list nodes even though they are associated with categories...
Actually I know they can (I do it without views) But I want to be able to do it with views as well...
by the way, I used the technique shown on this site to generate the view, is there anything to add to the views config to achive listing all nodes on a container page with views?
Thanks
need some help
>>>>>>>>>>>>>>>>>>>
Once you have a custom view that's ready for use with categoryi_views, simply add or edit one of your containeriis, and go down to the category view settings box. In the view for this container setting, select the custom view that you created. Then configure where you want the view to show, with the show view on setting.
>>>>>>>>>>>>>>>>>>>
Created some structure using "Creating a basic hybrid structure" (used story type for news container), than enabled taxonomy wrapperi, created custom view as shown here, but at the final step - in the view for my container setting I couldn't find my newly created view. So, I need some ideas to make category_view module work.
As of Oct 2006 categoryi
Can't get views to show up on Containers
I created a categoryi view. When I went to a containeri to select the view. The choices were <none> and three blank selections. I have three views created, so I am assuming that the three blank entries are for the three that I created. When I select one of the blank entries, nothing changes when viewing my container.
It would appear to be broken. I am using the category module from the drupal modules page (category-4.7.x-1.x.tar.gz). I retrieved this file on 11/11/06. I am running Drupal 4.7.4.
Any thoughts as to why my newly created views do not show up in my containers category view settings? When I use the [view:myview] syntax in the Body text of the container, the view works.
I am still at the stage of Category 101, so I don't completely understand all of this, but I think I found a bug.
Thanks for the great module.
Rich
(rl)
Got 'em to work
The issue was that if the view description is blank, they will not show up in the combo box in the Categories View tab.
Rich
(rl)
Mistake " Invalid argument supplied "
updated to 5.2 and latest dev of Category
updated to 5.2 and latest dev of Category but this Views feature still does not work for me. It seems like the Argument is not getting passed at all... maybe?
Categories needs to get reapplied after enabling taxonomy wrappe
It seems to me, when you are using Categories module (I am using: $Id: categoryi.module,v 1.124.2.2 2007/02/02 08:04:05) and have enabled the Taxonomy wrapperi, you first need to reapply all existing nodes to a category again. Once I had enabled the wrapper, I edited a particular node this node lost its link to its corresponding category, as did all the others. I am not sure in what order you should do certain steps so perhaps it would be best to enable default taxonomy first... Here's what I did:
1) Enabled Categories module (Taxonomy disabled)
2) Built my site using Categories and made up nodes, applied Categories to them
3) Enabled Taxonomy and Taxonomy wrapper (comes with Categories)
4) Created view according to this howto
5) Edit nodes, reapplied Categories (actually these come from taxonomy)
...then my view showed up.
Note: I used an option for my View arguments, as it stated in the info text for the Argument field, but I am not sure if it's necessary or what it does exactly...
Offtopic: the math captcha for this website seems to be not working properly. Or is it a trick question? ;-)
i hope not
so, since I've gotten to step 4 of your guide, are you saying now that i need to re-assign each node into that containeri before they will display in the view? that sounds like a horrid task considering how many nodes i have.
thanks for the help.
Views argument
I've installed the latest versions of Category (5.x-1.x-dev 2008-01-22) and Views (5.x-1.6) on Drupal 5.7 and cannot get Views to filter by taxonomy term. With no arguments the categoryi view displays all nodes in the system, but as soon as I add the Taxonomy: Term ID argument no nodes are displayed, even if the Default option is set to "Display All Values". Are there any specific settings I need to use for the argument?
problem with views displaying in multiple categories
My first problem is that I can't get views to display on a categoryi page. Is the "taxonomy: term ID" a necessary argument to generate a view or can it be done without?
My other problem is a containeri contains more than 2 categories. And each of these categories cannot have the same view displayed. In this case, Can I generate category views as blocks and then use it to display them in the relevant category page? or is there another route to use different views on multiple categories belonging to the same parenti container?
+ 1 Having the same
+ 1
Having the same problem.
Question
Is this still the case? That is, needing taxonomy wrapper?
Thanks.