computed field

Events happening in the community are now at Drupal community events on www.drupal.org.
syawillim's picture

Mapping from GPX file

I'm putting together a personal site to keep track of local trails; I want to render a map from an uploaded GPX file, no problem so far using FileField, Geocoder and Leaflet. To make it a bit more interesting I would like to add a little more information such as a table or list with Distance, Vertical Climb, Vertical Drop, Grade (average), Grade (max), Altitude (min), Altitude (max) and a chart plotting vertical over distance.

Read more
nonprofit's picture

Creating a Rules-driven admin dashboard

Hello,

I am somewhat new to Rules and am amazed by what it can do. I've got a situation where I believe Rules is the best tool, (I have also considered http://drupal.org/project/computed_field and http://drupal.org/project/views_calc). Any insight you have would be greatly appreciated.

Read more
atomicbop's picture

Default value as Ubercart attribute option

I'm having a major problem with displaying Ubercart attributes. I need to get each attribute option's price to display in it's own cck field. I have tried using default value using the php input, and also using Computed Fields module. The values should display, but they are not.

This is the code for the value:

$node->attributes[1]->options[1]->price

If I print this in node.tpl.php, it shows. Why wouldn't it show in a cck field? I've also tried it in a view using the customfield module.

Read more
anjjriit's picture

need help to create compute code for computed field

hii everybody,

I need help to create simple compute code on my computed field around water meter measurement, and I have to post what i need at http://drupal.org/node/721822, I'm very very needs solution for this simple problem.

Thanks for your help.

Read more
husainsn's picture

Access of Location data for a Computed Field

Hello
I have a node type with location data. I want to access latitude and longitude data to calculate Sunrise time in a computed field on the same node - but no success. The code in computed field is:

$lat = $node->$location[latitude];
$long = $node->$location[longitude];
$node_field[0]['value'] = date_sunrise(time(), SUNFUNCS_RET_STRING, $lat, $long, 90, -5);

I can access latitude data $location[latitude] in the theme override, and can calculate sunrise. I want to use the computed field in a View.

Any help will be appreciated.

Read more
husainsn's picture

Access of Location data for use ina computed field

Hello
I have node type with location data. I want to access latitude and longitude data to calculate Sunrise time in a computed field - but no success. The code in computed field (on the same node) is:

$lat = $node->$location[latitude];
$long = $node->$location[longitude];
$node_field[0]['value'] = date_sunrise(time(), SUNFUNCS_RET_STRING, $lat, $long, 90, -5);

I can access latitude data $location[latitude] in the theme override.

Any help will be appreciated.

Read more
Subscribe with RSS Syndicate content