-
-
Notifications
You must be signed in to change notification settings - Fork 213
Page/Filepicker should store file inserttag instead of real path in the database #8578
Comments
|
This is a feature that has been requested in the past in various issues. However, the discussions always strayed away (or the original post of the issue wasn't really about that, but the following discussion evolved into a discussion about such a feature) and all of these issues got closed without further explanation or discussion. I have implemented this feature in fritzmg/contao-filepicker-uuid but this should definitely be something that should be present in the Core. |
Why is there no pull request if I may ask? |
|
I planned on making a PR for Contao 4, since it's a new feature. However, I haven't really got a clue yet how to do that there. I am guessing it should be implemented directly in |
|
Well, I stumbled upon this today, well one of our clients did. Since I did not know if you guys already had that issue on the screen, I did not make any effort yet. |
|
No changes to the filepicker or JavaScript are necessary. You just need to convert any file paths to a This is already done for the |
|
Yes, true. save_callback and load_callback should do the trick. |
…ttag to real path on load_callback
|
Hi, take a look: timgatzky@5f539f3 Example for tl_content.url |
|
I would put it directly into the |
|
Changed in contao/core-bundle@3e20858. |
Hi guys,
take a regular Hyperlink element, choose a file... Contao will store the real path in e.g. tl_content.url. In case of moving/renaming the file/folder, the link to the file will get broken.
The filepicker should store the file:: inserttag here to keep the file in sync.
If the file is not in snyc yet, add it in the save_callback.
Current state:

Should be state:

The text was updated successfully, but these errors were encountered: