Needs work
Project:
Profile CSV
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
6 May 2009 at 08:31 UTC
Updated:
11 Jul 2015 at 02:47 UTC
Jump to comment: Most recent file
Comments
Comment #1
ksc commentedVIEWS BONUS MODULE can export all views to various CVS formats (it produces a kind of feed).
Views can show and filter CONTENT PROFILE fields as well as fields of CORE PROFILE.
:-)
-ksc-
Comment #2
damienmckennaThe Views_Bonus module's CSV exporter works perfectly. It might be worthwhile to add a comment on the project page to suggest using it?
Comment #3
damienmckennaDue to having all of the extra fields available, and being able to give non-experienced site editors access to this vs Views, this is still worthwhile. I'm working on a preliminary patch for a client, will upload later tonight.
Comment #4
damienmckennaHere's a patch to try out for size. I've tried to keep it flexible, able to support field groups, multiple profile nodes, and includes two hooks to allow other modules to extend.
One other change I made was to remove the requirement for the Profile module as it isn't needed. The module now works with the core Profile, the contrib Content_Profile module, both or neither.
Work sponsored by Bluespark Labs.
Comment #5
damienmckennaToDo:
Comment #6
damienmckennaSee #894840: Support for profile_csv for why it might need some work.
Comment #7
damienmckennaUpdated patch that changes all optionselect fields to be output as a comma-delimited string, e.g. "orange, banana, cumquat".
Comment #8
damienmckennaUpdated patch that changes all optionselect fields to be output as a comma-delimited string, e.g. "orange, banana, cumquat".
Comment #9
stella commentedI couldn't get this to work. I got the following errors though:
You need to add a check to ensure $value is array before doing a foreach.
However the main reason it's not working is that $field['name'] is being using and that is set to something like 'profile_csv_param_profile_field_profile_phone' which doesn't exist in the node object.
Comment #10
damienmckennaThanks for the review, Stella, I'll see about testing it some more and re-rolling.
Comment #11
damienmckennaFYI I'm rewriting this to be much cleaner, should have something in a few days.
Comment #12
jen.c.harlan commentedsubscribing
Comment #13
chyatt commentedHi Damien - did you ever complete the rewrite you mentioned? Thanks!
Comment #14
damienmckennaHaven't gotten back to work on it since October, am intending getting back to it in a few weeks.