Closed (won't fix)
Project:
File (Field) Paths
Version:
7.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 May 2013 at 13:03 UTC
Updated:
12 Mar 2014 at 05:14 UTC
Jump to comment: Most recent
Comments
Comment #1
neRok commentedI have installed Date 2.7 and tested with latest FFP dev, as per your instructions.
PS- I think you need entity api module for the field-datum tokens.
I started with cleanup using pathauto disabled.
[node:field_datum] didnt return anything, and the file didnt get moved.
[node:field-datum] returned "Property field_datum", and the file got moved.
[node:field-datum:value] returned "Wed.03/12", so this actually made 2 folders, and the file didnt get moved.
I now enabled pathauto cleanup.
[node:field_datum] moved the image to folder "2014-03-12-000000-2014-03-13-000000".
[node:field-datum:value] made 3 folders this time, "wed-03/12/2014-0000", and the file got moved.
I gave up testing at this point, I came to the following realisation.
FFP doesn't make or change tokens, it just uses what it is given. If it is given garbage tokens, it will spit out garbage paths. It isn't the job of FFP to tweak tokens. I am guessing your token with the span in it has come about from some custom code you have written elsewhere? Perhaps you need to make a new token specifically to present your date info to FFP. Or if Date is giving spans itself, hence why it was only working when I had pathauto cleanup enabled, you will need to modify the Date token on the fly (or get Date module to use different tokens).
Also note that while you think it is a good idea to strip tags out of your tokens, other people may want to keep tags in. Take the title of this very issue for example, it has in the title. Someone using [node:title] may get unpredictable results with your patch.
Also regarding your patch, it doesn't appear to be in the structure I have read other patches, which show + and - lines, not before and after 'paragraphs'.