Have Rewritten this usefull module for me and for everbody, who wants to use, test and modify it.
/*
module:fast_content_csv
Rewritten by Bruno
[email protected]
First Release by SamZ
[email protected]
v.09.2
Module to import/export data from csv files and edit many docs at once
Warning:
Use it only when you know what you are doing!
Make Backup before use!
You can run it in Testmode first to see a report what would happen.
Installation:
1. Upload all the files to /assets/..........
2. Save this code as a new module with name fast_content_csv
3. Create new plugin with name fast_content_csv, check the event OnManagerPageInit
Usage:
See Tutorials
##################################
changelog:
Release v09.2 24.01.2009 by Bruno
New Features:
make it possible to export/edit all child-documents in all levels under a startparent
added phx-modifier childIds which returns all childIds of the placeholder-value
added phx-modifier options which returns the options as output to work with it in the next modifier
#
Release v09.1 27.11.2008 by Bruno
New Features:
make it possible to edit many documents at once directly in the manager
BugFixing:
duplicating exisiting TVs on updating - fixed
#
Release v09 06.11.2008 by Bruno
New Features:
configfile to save different workspaces/actions and document-bindings for the plugin
plugin for easy import/export in combination with the document-tree and document-bindings
introduced new placeholder-tags for PHx-work [#t#...#t#],[#s#...#s#],[#d#...#d#],[#r#...#r#]
PHx-replacment in document-bindings-field
changed:
removed the checkboxes 'replace placeholder', because we let now all modx-tags untouched
complete workflow changes
removed default-files, all datas now in one config-file for each source-file
Tutorials updated to the complete changed workflow
#
Release v08 21.10.2008 by Bruno
New Features:
update/insert(if not found)
checkbox for to multiply the csv-row to all matching parents on inserting
multiply the csv-row to all matching parents on inserting
multiply existing documents which match to source and/or default to all matching parents
document-export the checked or all document/TV-fields which match to source and/or to default.csv
checkbox to export all document/TV-fields
placeholder and PHx in Export-mode
Changes:
Some intern changes and bugfixing
stop PHx from replacing chunks, snippet-calls, document-variables and so on
#
Release v07 12.10.2008 by Bruno
New Features:
Extra config-Tab and config-csv-file
checkboxes for use or not use default-files
Save all default-files with one Button
#
Release v06 10.10.2008 by Bruno
New Features:
dropdowns to choose one or more matching fields for updating documents
default-csv-file for default TV-values
default-csv-file for parent-document matching and creating
you can use now placeholders in all default-files and in csv-source-file
phx to modify the placeholders within data-importing and for genarating dynamic parent-datas
checkbox for each sourcefield whether to replace the coresponding placeholder or not
checkbox whether to update datas from empty source-fields
checkbox whether to create parents if not found
use any docfield or TV (one or many) for update- and parent-matchings
and some bugfixings
#
Release v05 Bruno
[email protected]
New:
fast_content_csv.class.inc.php
autodetect fieldnames for docs and TVs from first line
drop-downs to set fields manually
drop-down for csv-files and templates
use defaults from default.csv
change and save values of defaults.csv directly in the module
update docs and TVs from csv with given docid
and some little features more.
#
Release v035 by SamZ
[email protected]
Todo:
More Testing
More Tutorials
Tutorials in English
include documentgroups
###################################
*/
[ed. note: Bruno17 last edited this post 14 years, 10 months ago.]