On a website with more than a few thousand images one must ensure that the image collection is layed out in a hierarchical directory structure to ensure good file-system performance. The CCK, FileField, and ImageField modules integrate with the Token and FileField_Paths modules to allow the images to be saved and accessed in a hierarchical directory structure. However, when importing nodes using the Node_Import module, Node_Import does not perform the token substitutions as specified by FileField_Paths.

Using:
Drupal Core: 6.10
MySQL: 5.0.51a
PHP: 5.2.9-1

Contributed Modules:
cck-6.x-2.1, filefield-6.x-3.0-rc1, imagefield-6.x-3.0-rc1, token-6.x-1.11, filefield_paths-6.x-1.0

Comments

Sthenidas’s picture

Category: bug » support
malukalu’s picture

subscribing

cyberwolf’s picture

Subscribing.

chrowe’s picture

I posted my issue at http://drupal.org/node/374352#comment-2134624 but have just confirmed that this is my main issue.

As I said in my other post

I have some developers who can take a look at this next week. If you can point them in the right direction that would be wonderful. Or I can pay for your time if you can give me an estimate of what it will take.

Thanks again,

Chris

ak’s picture

Subscribing …

aelling’s picture

This is something that I have noticed /experienced as well. The provided file path (with or without token substitutions) as specified by FileField_Paths is ignored during node import thus you have to manually specify a path in the csv if you want a specific structure to your image path file structure. Would be a great addition if the supplied path (token or just a regular path) were recognized by node import.

finex’s picture

I'm experiencing this problem too.

Currently node import uses the first value configured for that file field. If the file field is shared between multiple node types, the file field path is the one from the first content type configured.

Robrecht Jacques’s picture

Title: Node_Import doesn't integrate with FileField_Paths to peform token substitution for tokenized imagefield file paths » Support tokenized file paths (FileField_Paths module)
Version: 6.x-1.0-rc4 » 6.x-1.x-dev
Assigned: Unassigned » Robrecht Jacques
Category: support » feature
dallasw1983’s picture

Would it be doable to have the images saved to a tmp static location then write some code to process the files and add them to the file field paths?

I'll write some code but I don't know much about the functions to use to make it drupal friendly. My method is write database changes. Only been working with drupal and PHP for about a year :\