I am looking for somebody how can quickly send me the code to calculate a couple of computed cck fields for drupal 6.
Tell me how much you need for this (I guess in the range of 20 $) and I will choose who to give it to. No need to test it
on your own system. Just send me the code to include and I will test it and if necessary get back to you with questions.
I am using node hierarchy to have parent/child relationship between two different cck node types. One node type is "project" and the other is "bid".
The bid contains a field named "price".
Now the parent, project node should contain the following computed fields:
1) "number_bids": counts the number of bids (equivalent to counting the number of children)
2) lowest_price: go through all the bids and find the lowest bid which is not equal to zero
3) lowest_bid_link: a link to the lowest bid node
4) price_difference: the price difference between the highest bid and the lowest bid (lowest bid not equal to zero)
Thanks for your help
Urs
Comments
Field Types
I guess I should add that the field "price" is of type "decimal number". Therefore, I expect the computed fields "lowest_price" and "price_difference" also to be of type decimal number. "number_bids" however will be of type integer.
Hello, did you have any luck
Hello, did you have any luck with this? I am trying to set up something very similar and would be very interested in knowing how this turned out for you.
Thanks
Let's see
It's more than 2 years from this post, i have a solution for counting the chidren nodes from a parent. I just put a PHP block with a query to database only to show the counts of children of a parent.
If interested send a reply or contact me.