Hi, any idea if image import can be made to work with pathauto? Images are given the path /node/number if uploaded with image import until the image is edited then the path gets renamed.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | image.patch | 425 bytes | adrien.gibrat |
Comments
Comment #1
adrien.gibrat commentedThe problem is in the image module, the function 'image_create_node_from' (that allow other modules to create image nodes) did not set $node->pathauto_perform_alias to TRUE, so the pathauto module do not create an alias...
The info of the image.module to apply the patch:
The patch:
Comment #2
drewish commentedi don't think that it's fair for the path auto module to assume that every other module is going to set it's flags for it. i'm very tempted to mark this as won't fix.
Comment #3
adrien.gibrat commentedIt's the only way to generate an automatic path while importing... without changing too much things. Maybe an opt in option could allow user to choose either or not to generate a path, but I think all the programmatically created images should have an automatic path if pathauto is installed.
Comment #4
ggarry commentedExcellent thanks adrien!
Comment #5
Hetta commentedOK, that patch works on 5.x-2.x-dev.
Comment #6
sunIs this still an issue? Did you update to the latest version?
Comment #7
sunIt is.
Comment #8
Leeteq commentedSubscribing.
Comment #9
joachim commentedAnyone tried this lately?
Comment #10
sunSorry, without further information this issue can only be closed as not reproducible.
Feel free to re-open this issue if you want to provide further information. Thanks.