panel 2 integration

Sharique - May 14, 2008 - 15:17
Project:userreview
Version:5.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Thanks. This is a really good module for writing reviews.

In panel2 integration we can have to blocks
1. to write review
2. list of reviews (with some sorting order options be better)

#1

sylv3st3r - June 10, 2008 - 16:03

Hi, before I have the same problems. But I found a work-around to do almost what I wanted.
With a bit of code change I can do this :
Content and review form showed on left side and list of reviews showed on right side.

This what I do :
1. Go to admin/build/views
2. Override userreview default views by clicking add
3. Make sure your overriden userreview providing page, with list view as the view type ( you can also set the sorting order here)
4. Go to panel->views panes
5. Select userreview and click create panel view
6. Go to panel->panel pages
7. Set the panels as you desired
8. As for me, I used 2 column as a layout, so at content tab, so I choose "Node ID" Content for the left side
9. Be sure to check Node Page and uncheck no extras
10. For the right side, add your userreview pane from Views
11. Save and check

Now to edit the userreview.module
remark this code : (by adding /* and */)

        //next, show a list of user reviews if any reviews
         if ($count_votes->value > 0) {         
          $node->userreview->review_list .= theme('userreview_list', $node, variable_get('userreview_list_collapsible', true), variable_get('userreview_list_collapsed', true));
          $node->content['userreview_review_list'] = array(
            '#value' => $node->userreview->review_list,
            '#weight' => 7,
          );
        }

Example of what I done : http://www.musicopath.com/album/dark-passion-play
I hope it helps

#2

Summit - November 12, 2008 - 13:45

Subscribing, did you get userreview working with panels 2, so people can really add reviews to node, also when nodes are overriden with panels 2 node/%?

Greetings,
Martijn

 
 

Drupal is a registered trademark of Dries Buytaert.