Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal 8, file/image field directory tokens

Tags:

php

drupal-8

i just installed d8 for the first time (im d7 user). I noticed that when im creating content type, and file/image field, there is directory option with some date tokens:

[date:custom:Y]

im searching from one hour for more information on drupal site, forums etc. Is there any info about all available tokens by default? Or there are only date? Im looking for token that will use my custom field value or node title. Module "Token" and "File field path" are still in alpha version, but maybe there is possibility to do that from the core modules? Or it is maybe simply to do that inside custom module? Any suggestions will be nice

like image 410
Daimos Avatar asked Nov 24 '25 21:11

Daimos


1 Answers

Yes, there is a listing of all available tokens (if you have the token module enabled). Just navigate there:

/admin/help/token

It is planned to have a token browser implemented in core, but it's postponed as stated here: https://www.drupal.org/node/514990

like image 53
Frank Drebin Avatar answered Nov 26 '25 12:11

Frank Drebin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!