Hi I'm trying to import a directory of content with many subdirectories underneath. When I use the bulk import tool I only get the root directory's content. Is there a way of making matrix import all the subdirectories with there subdirectories and files etc?
I wonder if there's any way to compress the contents and have matrix read this in? Like is done with the sample designs on the matrix site, but for main content folders?
The Bulk File Import Tool allows you to select multiple directories to import to one or more locations within the asset map. This is the only way to bulk import files using the Administration Interface.
[quote]I wonder if there's any way to compress the contents and have matrix read this in? Like is done with the sample designs on the matrix site, but for main content folders?[/quote]
Several people have asked for this, but no-one has volunteered to fund this development. I usually cheat by uploading multiple files in a zip to a design and then just moving them out of the design. :) Remember though that you still can't import directory hierarchies -- Matrix will put all the files in the archive under a single parent.
I just make the subdirectories too on Matrix in the backend and then pull the directories apart on the front end and bulk import them that way. Course I can see how that would be a big pain if you have many many subdirectories.
Yes. :) There is also the import_files.php script in the /path/to/matrix/scripts/import directory. This allows you to import files in a hierarchy but you need access to the server to run it. You should also read the comments in the top of that script very carefully for instructions on how to use it.
Found the scripts directory and tried to edit the php file but there's no content in there according to vi. See output below there are several import php files by the looks of things but when I use vi to edit any of them they appear to be empty:-
robert@poowebpublish:/janet/mysource_matrix/scripts$ ls -al import*
total 92
drwxrwxrwx 3 robert robert 4096 2007-08-06 02:23 .
drwxrwxrwx 6 robert robert 4096 2007-09-20 14:11 …
-rwxrwxrwx 1 robert robert 1655 2006-12-06 05:42 convert_fonz_for_import.php
-rwxrwxrwx 1 robert robert 2781 2006-12-06 05:42 create_pages.php
-rwxrwxrwx 1 robert robert 3195 2006-12-06 05:42 csv_to_html_tree.php
-rwxrwxrwx 1 robert robert 29764 2007-02-06 03:47 csv_to_xml_actions.php
drwxrwxrwx 2 robert robert 4096 2007-08-06 02:23 CVS
-rwxrwxrwx 1 robert robert 15134 2006-12-06 05:42 export_to_xml.php
-rwxrwxrwx 1 robert robert 3638 2006-12-06 05:42 import_files.php
-rwxrwxrwx 1 robert robert 3424 2007-02-11 22:22 import_from_xml.php
-rwxrwxrwx 1 robert robert 7349 2006-12-11 00:53 update_asset_titles.php
-rwxrwxrwx 1 robert robert 2927 2006-12-06 05:42 xml_example.xml
robert@poowebpublish:/janet/mysource_matrix/scripts$ cat import_files.php
cat: import_files.php: No such file or directory
robert@poowebpublish:/janet/mysource_matrix/scripts$
Any ideas why these files appear not be be displaying are they links off to somewhere else?
[quote]The Bulk File Import Tool allows you to select multiple directories to import to one or more locations within the asset map. This is the only way to bulk import files using the Administration Interface.
Several people have asked for this, but no-one has volunteered to fund this development. I usually cheat by uploading multiple files in a zip to a design and then just moving them out of the design.
Remember though that you still can't import directory hierarchies – Matrix will put all the files in the archive under a single parent.[/quote]
I guess it depends if its worth the money, how much are we talking about to do this?
No idea. You'll have to speak to your Squiz Account Manager about getting a quote.