Hi,

I am using a database called "MyProductsCart" with two fields "uid" and "nid". It is a database that saves the products that a user has selected. I want to add a filter in my views so that the view only shows the nodes (products) that the user has selected. In must insert that code in the views_handler_filter_boolean_operator but I have no idea how to do it. So it must be filtered on the current user (but I think that this is already installed in the basic installation of drupal) and the nodes that are associated with his user id in my database.

Can somebody help me with this, or can give me a direction in which I could continue?

Thanks...

Comments

dawehner’s picture

i think you didn't understood how to extend views, not by hacking it :)
Here is a tutorial how to bring data from some tables into views http://views-help.doc.logrus.com/help/views/api-tables

esmerel’s picture

Status: Active » Closed (fixed)

No response to suggestion.