- Issue created by @vlooi vlerke
- π³π±Netherlands clivesj
Your request contains two parts:
1. Provide default configuration for folder path.
2. Accept token for the folder path.These two will indeed facilitate programmatically creation of directory listings.
We can sure add a configuration for a default folder path.
Please refer to
https://www.drupal.org/project/filebrowser/issues/2941911 β
to read the discussion on using tokens in the folder path. We have to make sure that once created, the directory name does not change accidentally due to a unstable token.I short time I have no time to work on this, but if you want to provide a patch, make sure to also include the update for the configuration in the install.yml file.
- πΏπ¦South Africa vlooi vlerke
Is it possible to populate β the uri field from the url?
I tried using the populate module β
/node/add/dir_listing?edit[filebrowser_folder_path][widget][0][value]=private://user1folder
If you can populate the uri then you can hide it from non admin users.
This has nothing to do with entity reference but will assist amateurs in creating dir_listing nodes on the fly with no token support.
Is this feasible, should I create a separate feature request?
- π³π±Netherlands clivesj
The fields on the dir-listing nodes are not real fields. The are injected on the node-create or edit form to create a Filebrowser object. that was a design choice early on on the design of the module. That is why Populate module will not work.
It is definitely doable to make it work, but I will not be able to find time to work on it at this moment.
If anyone wants to work on it please feel free to reopen this.
- Status changed to Closed: works as designed
over 1 year ago 9:21am 1 August 2023