Possible to attach review per term ?

desm0n - June 8, 2006 - 09:13
Project:userreview
Version:4.7.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:minor
Assigned:Unassigned
Status:postponed
Description

is it possible to attach a review per taxonomy term ?

My basic idea would be to have one unique forum that contains my reviews. Would this be possible ? I know it is likely it could be attached to all forums but its only one that i require a review section for.

Please advise .

#1

dado - June 8, 2006 - 09:58

desm0n
i hope i understand this correctly. it would be possible to do this, but it doesn't sound like a generic enough thing to do. i suggest you create a quick custom module (for yourself only) that does something like this

function mymodule_nodeapi($node, $op) {
  if ($op == 'save' && $node->type == 'userreview') {
    $node->taxonomy = WHATEVER
  }
}

To figure out what WHATEVER should be, I suggest install devel module, categorize any old node to the term you want your userreviews to be tagged to, view that node, click the "Object Structure" tab, and behold.

#2

desm0n - June 8, 2006 - 10:20

Ooops i think you've just totally lost me here :)

I'm not at all savvy when it comes to php or for that matter mysql so i am not 100% sure what your trying to explain me to do >? Would this write a custom module for me or something ? Sorry to sound thick here :)

Basically what i would like is to have reviews assigned to certain terms instead of the entire node branch. So as a forum say with the title General Lounge has a term id of 6, userreview would only should when adding a new post to that forum.

I hope i'm explaining that right .

#3

dado - June 8, 2006 - 10:28

interesting idea. would it be helpful if each userreview node inherited the same taxonomy classification as the node being reviewed? That is, if you are reviewing a node titled "Whacky Jack's Lounge" which is categorized with the term "lounges" then we would add the same term to the userreview upon saving. I suppose we could update all userreview nodes w/ same taxonomy classifications upon each update of "Whacky Jack's Lounge" in case its taxonomy classification changes.

Would that work? I think if the userreview were not set up to be classifiable to the same vocabulary (place types) then no taxonomy changes would occur to userreview nodes.

#4

desm0n - June 8, 2006 - 10:58

Im not 100% sure i fully understand you here (sorry taxonomy confuses me sometimes in all honesty).

If i read you right then the userreview will save the taxonomy term upon posting ?

My idea was quite simple really.

Within the Userreview settings you will have a sub panel where you can drill down to specific taxonomies and / or terms to attach user reviews too. From then on, that taxonomy term or category will show the option to review that node.

So we could have say 4 forums :-

forum 1
forum 2
forum 3
and forum 4

We wish to enable review possibilities to forum 1 and 3 only so within the terms subcategory we would highlight both. User reviews will show on those taxonomy terms from then on when posting new articles.

Like wise we would like all Blogs to show the user review so on the catagories sub section we would highlight blog. If, later on, we decided that all forums or all stories should inherrit the same, we'd highlight these also.

One other idea would be a theme hook for the review rating (not sure if you already have this). The we could, using node specific tpl's, show the user rating if available. This would allow us to implenent the stars (or other images) within the forum subject headings (lists) on say forum 1 and 3 but not see them on 2 and 4 where they don't exist.

I'm actually quite amazed drupal doesn;t have this feature as standard. It would give amazing flexability.

Imagine if you will the possibility to attach flexinode type control over say certain forum categories. So instead of the standard Title and context you could add your user reviews module and some extra boxes for extra content. The modules are out there to do this but as i see it there seems little way to attach to a specific term and only nodes seem supported, limiting its flexibility.

What do you think ?

#5

dado - June 8, 2006 - 14:50

The output is almost all themed so I would think you could customize. I am happy to provide some guidance on specific questions.

I see so you wish to not only target reviewing to node types but also to nodes categorized against 1 or more terms. That is doable but involves work. I don't anticipate I would get to this soon unless there were significant code/patches provided. I am hoping to upgrade the module in some months to allow configurable set of criteria, perhaps per node type. Will consider adding the further granularity of exposing/not exposing selected user review criteria on the basis of taxonomy category as well.

#6

desm0n - June 8, 2006 - 15:20

It can already be attached per node i think cannot it not ? Attachment to specifc terms only would be the way forward but yes i fully understand time constraints.

I feel it would make a great addition and one that adds better flexability to the system.

Thanks for listening.

#7

dado - July 12, 2006 - 07:33
Priority:normal» minor
Status:active» postponed

might get to this next release

#8

desm0n - July 12, 2006 - 16:57

Sounds great, look forward to an update :)

 
 

Drupal is a registered trademark of Dries Buytaert.