Hi,

I am looking for someone to help me build a custom module to compare any 2(3 or 4) nodes from a Content Type. That could mean I can compare any two pages, story or any CCK created content type (most likely it is most usefull here).

To be more specific:
Say you have two nodes of camera (content type) - c1 & C2. I would like to have something as below:

Feature......................C1..................C2
LCD Screen..................2.5 inch.........2.0 inch
Mfr.............................Sony.............Nikkon
Memory.......................SDCARD.........MiniSD
Price...........................$300.............$400
Rating.........................xxx...............xxxxx

There should be a process by which one should be able to select which nodes they want to compare.
I am inviting Freelancers/Company to quote a price for doing this module.

I would like the module to be added to the Drupal site, so it is accessible by all.

Thanks,
Victor

Comments

vkr11’s picture

BTW, I am using Druapl 5.X.

Thanks,
Victor

eugsadhu’s picture

I imagine one could accomplish this task via a view, perhaps one that has been appropriately custom themed.

vkr11’s picture

Can you suggest how? I am not sure how add two (or more) nodes to the views and also to have them not to display the title each field multiple times.

- Victor

nevets’s picture

The view to show the nodes be compared is pretty straightforward, you make a table view and pick the fields you want as the columns. At this point you have a view that is 90 degress off from your example (axixes are reversed) so you can use theming to get the look you want. You need to pass the list of nodes you want to compare to the view, what I am unsure of is how to tell the view you want the nodes that match the given nids.

vkr11’s picture

And I will also appreciate any tips on how to flip the table 90 degrees (using theme etc).
And ofcourse the question that nevents asked about how do you tell the views about the nids to be compared.

Thanks,
Victor

nevets’s picture

For how to switch the rows/column of the table see http://drupal.org/node/174578.

anshuman’s picture

So basically you want 3 columns, 1st having a list of values and other 2 as nodes, and display them side by them in the single page, right ?

Well you can use a 3-panel structure.

1) install the Panels module (http://drupal.org/project/panels)
2) create views - view1 having list of values (features), while view2 and view3 will be having arguments (http://drupal.org/node/54455) for its filters (http://drupal.org/node/54457)
3) create a 3-vertical-blocks panel, assign view1 for left pane, view2 to middle pane and view3 for right pane
4) call the panel from your "submit" action, pass on all your arguments

View1 is static, while View2 and View3 will both get the arguments which the panel was passed on to. The individual views can then render as per their own logic. Finally, we would have 1 submit action rendering the views , side by side, layout being governed by the panel design.

Would that do for you?

asak’s picture

And possibly have editable-fields.module for being able to change some node-values before clicking on "print".

possible...?

tool14’s picture

I understand your needs, i think we can do this with panels and views.

Before that i need to know, whether can we use filters in view in drop-down list.If the product names are displayed in drop-down list box, the user can select the product and corresponding details will be displayed in the same view.

After this we can include same in the two column panel.

vkr11’s picture

Yes, I cna use the filters.

- Victor
Better Way to Search Drupal.org | Drupal Jobs | Income Tax India

tool14’s picture

I am using panels to display views.

In the case of my views i am using name of the phones as argument. When the particular name is clicked the details of the phone will display.

I use the Panel to display the above view. In the case displaying views, the name of the phones displayed correctly, but when i click on the name of the mobile the details are displayed in the new page rather than diaplaying in the same panel pane.

please give some ideas.

nevets’s picture

You would need some for of ajax loader, depending on the version of views there are some modules that may help.

deanloh’s picture

This is something really useful and I'm happy to sponsor the development cost. Whoever is interested and can take up this job, feel free to give me your estimate.

faunapolis’s picture

subscribing here, this seems like a very good idea

asak’s picture

There is a module called called simpleviews at http://drupal.org/project/simpleviews which could maybe used as a base or extended for this functionality.

@deanloh - we may be able to help, feel free to contact once you have some details.

kristi wachter’s picture

There's a thread here:

http://drupal.org/node/289093

that gives a code snippet for creating a table view and then using theming to flip the rows and columns. That might give you what you want.

˚ ˚ ˚ ˚ ˚
Kristi Wachter
Drupal consultant, evangelist, and enthusiast

asak’s picture

That's part of the solution ;)

The bigger issue is having users select what columns they'd like displayed, what to filter by and how to sort the results. flipping row/columns is the final touch for the "comparable view".

Thanks.

marius.s’s picture

subscribe

Anonymous’s picture

This is a paid services thread, are you seeking someone to solve it and pay them?

StevenSokulski’s picture

I would be interested in sponsoring something of this sort.

vkr11’s picture

Bump
I am still interested and willing to chip in..

Alex Andrascu’s picture

It's achievable with views alone and maybe just maybe some custom theming. I can implement it for anyone interested.

StevenSokulski’s picture

If you could cook up some form of example to show folks how to get started in the right direction? I know there are a few of us in here who would definitely be listening.

vkr11’s picture

Alex, would you be able to deliver the theme solution for this? I would definitely be very interested in this.

summit’s picture

Hi, Very much interesed in example.
greetings, Martijn

Alex Andrascu’s picture

Hi Victor.
Yes i'm able to do it.
Please contact me directly from my contact form i don't check posts very often :)

aditi_prasad’s picture

I need to do something similar - comparing nodes(almost 6 products to compare). Has a custom module implemented for this? Any pointers. Thanks.

nevets’s picture

In Drupal 7 there is the Dynamic Properties module.