How to insert a token coming from a node field (outside a paragraph) in a paragraph filefield_path?
I have a content type to upload files and I organize theme by group, by category and by year.
The path of the files must be like this: /field_group/field_category/field_year/file.pdf
Content-type: content_document
- field_group: taxonomy
- field_year: number_integer
- field_paragraph_document: paragraph
Paragraph-type: paragraph_document
- field_category: taxonomy
- field_file: file
I can get the field_category token in the paragraph filefield_path setting like this:
- [paragraph:field_category:entity:name]
But these token doesn't work because the field_year and the field_group are outside the paragraph.
- [node:field_group:entity:name]
- [node:field_year]
Is there a way to make this work?
Thank you,
Comments
Comment #2
Swebmas commented