I have been using userreview, the current CVS version, with views the category module (both CVS) under 4.7.2 and I am getting behavior which confuses me.
On my test site I created several users and had all of them create a review of a node.
When I aggregated the view, using a combination of the userreview content ID and the taxonomy term ID as arguments, I get the list of all users who reviewed a certain book. This is presented as a table view with the text and the user name and the title of the review on each row.
When I am logged in as the user who make the review, and I click on the hyperlink which is the title to the review, I am taken to the node which was reviewed with the reviews all displayed below. This is the behavior I expect from the module.
When I am logged in as any other user than the one who made the review, including Anonymous, and I click on the hyperlink which is the title of the review, I am taken to a page of just the review, divorced from the node it reviews, or any link to it. This behavior in the module confuses me.
I am not sure whether this is a feature or a bug, which I have described.
Please advise,
Richard
Comments
Comment #1
dado commentedThis behavior was added so that once a user submits a userreview, they then get redirected to the node they reviewed rather their just-created userreview node. I figured users in general might occasionally need to see the actual userreview node (perhaps if a review gets truncated in the regular display of all userreviews, though I am not sure this would ever happen).
Do you recommend an alternative approach? Thanks
Comment #2
schavester commentedIt seems counterintuitive to me that clicking on a link to the review would just take you to that review, with no link or other navigational hint as to how to get to the node which is the subject of the review.
I don't quite understand your explanation of why you choose the behavior which you have, but you are the author of the module, and I know you have thought about its behavior a fair amount while creating it.
If there is no way to enable through the setting panel this behavior for all users, which you have given only to users who authored the review node, could you give me some guidance as to how to get my desired information to display with the help of a node content page?
For example, I can create a file in my theme folder, node-blog.tpl.php, which allows me to customize how I display information about the blog post when it is rendered by the engine, change tags and category listing locations, what links I wish to show and hide, &c. . . I have not been able to create a such a page for the review node which is recognized by the template engine however, I have tried the standard syntax, node-content-review.tpl.php, to no avail, and wonder if it is possible.
If so, I suspect I could then specify that a link to the reviewed node, which could be accessed by specifying the correct slot in the node array, to be printed out along with the review to facilitate navigation.
This request for this specific behavior comes from the desire to display reviews of nodes broken down on a user by user basis, which is not necessarily how you envisioned the module functioning.
I hope this helps clarify what I am trying to do.
cheers,
Richard
Comment #3
dado commentedjust returned from vacation, sorry for thr delay
i think if you made a node-userreview.tpl.php
then you should be able to style the userreview that appears.
Note that the module does update the breadcrumb so it looks like
Home >> Title of the node you are reviewing
i agree a little more context would be good when viewing a userreview node in full/node/page view mode. but (1) this only ever happens when you summon a userreview from unconventional means such as a custom view, and (2) the exact styling of the contextual info is probably best left to a theme, as in writing your own
node-userreview.tpl.php
Comment #4
(not verified) commented