I have a Trackfield map displaying a track using lat/lon points. This works fine and I can add a stats field below the map to display the total distance of the track. I only require a Trackfield map to display on spcecific nodes which it does since if no track data is available then there is nothing to display. Unfortunately the stats field displays '0' which in the context I am using the map is fairly meaningless. Is it possible to only display stat field data if track data is available? ie if no map displays, then no stats display.

I notice in the CCK Trackfield Stats form there is ' Operation Args: ' but I am unsure if this can be used to achieve a solution. If it can, what code would need to go in to provide an argument?

Comments

raintonr’s picture

Status: Active » Fixed

Ooops... this should fix that by allowing null stats:

http://drupal.org/cvs?commit=131340

jupiterchild’s picture

This now works fine.

I found unless I opened each node in edit and re-saved, Tracks stats still displayed in all nodes. Since I only had a few test nodes with Track stats I emptied the CCK Track tables, cleared Drupal cache and now everything works OK.

Thanks for your time, much apprieciated.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.