In a paragraph I have an image field. For the path of this field I use the offered contextual token:
contents/images/[current:form:node:title]
But in the file system the path
[current/form/node/title]
will be created.
I'd like to have the node title as a folder after creating a node.
Am I right, that I can use this token, when it's been offered in the token list?
If yes, what am I doing wrong?
Issue fork context_stack-3293780
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mxh commentedYour expectation is not wrong. I'm considering this as a bug. The problem at this place is, that the place where the file destination is being generated is currently outside the scope of the form context stack. The form context stack is currently only covering the rendering process of a form, whereas this file destination is already being generated way before. I'm trying to find an approach for it.
Comment #3
mxh commentedComment #5
mxh commentedPlease have a look whether MR1 works for you.
Comment #6
mxh commentedThere are some followers in here, so please review the merge request and give feedback whether it works for you or not.
Comment #7
deelite commentedSorry, I didn't get messages about news here. Is this patch part of the last dev version?
Comment #8
mxh commentedYou can checkout the issue fork of the merge request with the commands as shown in the IS above.
Comment #9
mxh commentedDo you need any help with reviewing this?
Comment #10
deelite commentedSorry for the delay. I checked out the fork. Now [current:form:node:title] isn't available anymore. Setting it as a token results in an error, that the token isn't available.
Comment #11
mxh commentedWhat is the error message? Do you get a detailed stack trace in the logs? I can only help you out when having more details about the error you've received. Please post the exact output of the error message and provide more details if available (e.g. logged errors).
Comment #12
deelite commentedDrupal message when saving the field settings:
In recent log I have nothing about that. As I wrote:
[current:form:node:title]isn't available in tokens. Also all other form tokens.
Comment #13
mxh commentedIf you have the Inline Form Errors module installed, a concrete error message should show up on the field. I need that concrete error message. Alternatively, try to see whether you have more details in the message when that Inline Form Errors module is not installed.
Comment #14
mxh commentedFurther tips that may help bringing this forward:
By providing more details, it helps me to trim down the scope of the possible causes of this problem.
Comment #15
mxh commentedAny news about this?
Comment #17
mxh commented