When you create a node and add some pictures via Insert to display them via Colorbox, everything goes fine. But when you create a patch so filefield patch can sort images for you in specific folder (like news/[current-date:custom:Y-m]/[node:nid]), you need to delete all pictures in node and add them again (click Insert button, don't need to upload them again) to propertly display them via Colorbox.

tested with:
FileField Paths 7.x-1.x-dev 2011-Oct-30
Colorbox 7.x-1.2 2011-Sep-16
Insert 7.x-1.1 2011-Apr-29

I duno it's even FileField related but I hope it's fixable.

It could be related with:

- Why are my files uploaded to 'files/[nid]' instead of 'files/1'?
When you are creating or updating a node the full values for the Node tokens may not yet be known by Drupal, so the FileField Paths module will upload your files to a temporary path based on your filepath pattern ('files/[nid]') and then once you save the node and Drupal is provided with the Node tokens values the file will be moved to the appropriate location.

- http://drupal.org/node/1149910

Comments

deciphered’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

I tested these modules with the supplied pattern and everything worked perfectly for me.

Please provide more information on exactly what isn't working for you and how to reproduce from scratch.

Cheers,
Deciphered.

kelutrab11’s picture

I got the same issue - needed to reload all images added by Insert module, when changing FileField Path (Image Path settings).

deciphered’s picture

kelutrab11,

Unless you can provide more information about this issue it can't be fixed, as stated in the comment above yours, I need to know exactly what isn't working for you and how to reproduce the issue. In other words, tell me what you're doing and what's happening.

kerios83’s picture

@ Deciphered tonight I will test it again and let you know exactly what happened.

kerios83’s picture

- drupal 7.9,
- FFP 7.x-1.x beta1

After installing the module and set a proper path, only the first image path is set properly. And when u click on this image u won't see the content (colorbox). Rest of the images have wrong path (old one) u can't see images but when u click on a link u can see image via colorbox.

- Testing on a existed node gallery with IMCE, INSERT, TINYmce, WYSIWYG, Multilingual site (i18n) - updated by Retroactive update.

After editing content and add images again by insert module everything works fine.

I need to test it a little bit more, with more options in use. Soon I will update this topic.

batigol’s picture

I think I have exactly the same problem as author posted. Modules that help me manage image files are:

FileField Sources 7.x-1.4
IMCE 7.x-1.5
IMCE for File Field (http://drupal.org/project/imce_filefield) I'm using latest version from ufku sandbox - http://drupal.org/sandbox/ufku/1373728. (Now it's Actively maintained project - very nice module).
Insert 7.x-1.1
Colorbox 7.x-1.2

So when you add a new node and put some files in it with INSERT module to display them via COLORBOX everything works fine.
When you instal FileField Paths 7.x-1.0-beta1 and set a path for example files/gallery/[current-date:custom:Y-m]/[node:nid] and create a new node, only the first image got proper path. Rest of the images are not displayed via COLORBOX cause of wrong path !

Thanks to the IMCE for File Field module this is fixable. You need to delete images in node added with INSERT module, add them

again

from proper place (FileField Paths move you previously added images to a new destination) with IMCE for File Field. Now everything works fine but you need to do everything twice... It's very annoying.

Like @kerios83 said. It's possible to add images again without IMCE for File Field - File sources -> Enabled sources -> IMCE file browser checked.

EDIT: Actually after looking more into it the only thing you need to do is add images again but not thanks INSERT but in node. Simply delete them from text and add them again by clicking on insert button (don't need to delete them from Insert)... Thanks that you don't need to save node and edit it again.

I think it should be fixed.

kerios83’s picture

@batigol also check Transliteration module. Sometimes Colorbox have problem with link to image when it's name is changed. Before image upload change it's name manually.

This is actually very problematic issue cause there is many modules involved and you need to look in most (all ?) of them and test many possibilities. Fix could be available for one or more of them. Something for drupal guru like Deciphered - if he has time off course.

hass’s picture

The source of this bug may be the reason of what I've seen in #1483902: Add additional files or Move files cause cluttered content, too. Maybe you guys can check the sourcecode if your links also have the many slashes added.

gatman’s picture

This issue still exists. Folders are not created.

mypath/mypath2/[current-page:url:unaliased:args:value:1]

Folder is not created unless image(s) is removed and then re-uploaded.

Drupal 7.26
File Field Path 7.x-1.0-beta4 - and - current Dev version
Colorbox 7.2.5

neRok’s picture

Title: FileField Paths, Inser, Colorbox image issue » FileField Paths, Insert, Colorbox image issue
Version: 7.x-1.x-dev » 7.x-1.0-alpha1
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

When a file is uploaded to a FFP enabled field, it is uploaded to the root folder, typically sites/default/files. When you use Insert (with or without colorbox), the href links are to the files current location. When the node is saved, and FFP knows the token values, it moves the files and updates any links in the node body with a regex statement.

There have been many changes to FFP since 2011, so chances are this is no longer a problem. My quick tests confirmed the regex corrects all paths with colorbox and insert modules enabled.

@#9, your problem is unrelated to this issue, please start a new issue if it is still occurring.