Hi

I don't know if this is the normal behaving of this nice module , but is is not possible to use the [node:id] or [node:title] token (which is not available and if intentionally added send error ) , when creating a file field on a paragraph bundle.

As a paragraph is going to be added to the node , we may want the path , where will be store the paragraph's file, to be explicitly related to the node : something like .. sites/default/files/[node:id]/extradoc or sites/default/files/[node:title]/extradoc

am i missing something please?

thanks

Comments

delacosta456 created an issue. See original summary.

philsward’s picture

Ran into this issue as well. It might have something to do with "entity references" not working #2851650: FileField Path does't work with Entity Reference fields

Wish this worked so I would be able to keep all images of a 'node' together in the file structure :-/

nwom’s picture

Status: Active » Closed (works as designed)

This is related to #2444671: Make host node tokens available to Paragraph bundles. Currently the Paragraph Bundle is unaware of the host node, which ends up not being able to provide the tokens. It is inherently different than Field Collections, as an example, since Field Collections are always attached to the node which allows the host node tokens to be used.

So it appears it would have be implemented on the Paragraphs side.

Syntapse’s picture

I too need [node:title] in child paragraphs....

one possible solution is to give paragraph's arguments...

subscribing.

Syntapse’s picture

this is a more general limitation of paragraphs. appears there is no way to pass context into a paragraph and no way to access parent context from a paragraph. This is a design limitation if compared to most other drupal entities, pages, panels, blocks etc.