Active
Project:
Custom review
Version:
5.x-2.1-1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
16 Jul 2008 at 09:52 UTC
Updated:
24 Jul 2008 at 13:47 UTC
This module seems the right choice for my travelogue site. I had problems intially getting it working, now want to dive into using it more..
1. Could you please tell me how to create a view (of all reviews) for a particular node? I have a destination called Los Angeles (which is a node) and there are several reviews for this node. I want to display reviews of this node either as a block or a page.
Where I'm unclear is what fields, arguments and filters that I need to use to create the view.
2. Is there anyway I can customize the block to add reviews. Right now, I see an 'add review' button. Can I change this to a text link?
Looking forward to suggestions...
Comments
Comment #1
Striky2 commentedHi,
1/ Default views are provided in the views. Lots of things are explained in README.txt.
The view you are requiring almosts exists by default (demo_reviews_typed_on_a_node). This is working only with arguments. The url is then custom_reviews/reviewer/$arg/on/$arg
where first $arg stands for the type of node you use to make reviews (I insist, not the reviewee type, the reviewer node type)
and second $arg stands for the nid being reviewed.
Starting from this view, and knowing a bit about arguments... you can create basically what you like!
2/ as for the block, well, first of all, don't forget there is not only an "add" button, but a select list of possibilities (add from this type, edit this type, ...) The better way to proceed to theme that properly, is maybe to override the form provided, by a template function, (lots of tutos around the ocmmunity for doing that), or simply modify directly the hook_block function, but then the module will become a bit 'proprietary' to you.
Hope this will help you...
Comment #2
deadlyminds commentedThanks. I'll try out the views part you suggested.
I created another support request for modifying the review block, pardon me for that. The reason I wanted to customize the block was to do it from an usability point of view. Not many users of my site will know what a 'review' is.
So if there is a faclity wherein I can add a text link say "Create a travel story or review about this place" either in the content or as a block in the sidebar, that'll be awesome