Posted by hampshire on November 20, 2011 at 2:44pm
2 followers
Jump to:
| Project: | Trackfield |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
It would be useful if the "Track" field, where the user pastes the actual GPS tracks, was accessible by the Rules module. This way Rules could populate it automatically with the name of the file uploaded in to file field. The data type selector would also have to be accessible by Rules or just have a default so that, for example, it treated everything as "File: GPX.
Comments
#1
I agree that this functionality would be good, I have thought of using a javascript snippet to do this as a quick and easy fix.
#2
Should this really be accomplished through rules/token integration or should trackfield be a bit more intelligent and know that a file has been uploaded?
Trackfield in D6 uses the native node attachments and not CCK Filefields, for D7 a File field is the only option. In this situation a 'reference field' (as per Stats and Graph) pointing to the file field would make sense (CCK & D7). Even using node attachments, trackfield should potentially expect certain filetypes if CSV has no value and can look for them, say the first instance of a known track file.
What do you think?
#3
Yes, I think a referenced field is a better route and that trackfield should know when a file is uploaded.