Open with a selected file (reissued)

Created on 15 June 2023, over 1 year ago
Updated 8 August 2023, over 1 year ago

Hi there,
I didn't realized the day I upgraded IMCE to version 3.0.8, but now I see that I have lost what I have accomplished following your instructions on this issue: 3227188
I tried following the same instructions again but I didn't succeed in bringing that feature alive again...

I did as suggested in that issue:

There is no support for the initial file selection but it can be done by custom javascript. (added to imce-page.html.twig in your theme)

But nothing changed

Besides, some actions that I referred there lead to display nothing on the web, specifically points 2 and 3 for file modules/imce/js/imce.Item.js

Point 1, is the only one working....

So, please instruct me on how to recover that pretty nice feature you have facilitate for me in the previous version..

thanks!!

💬 Support request
Status

Active

Version

3.0

Component

Code

Created by

🇨🇱Chile Andrés Chandía

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Andrés Chandía
  • 🇨🇱Chile Andrés Chandía

    I have upgraded to 3.0.9 and I got it working again.
    I have discovered a typo though, that didn't prevent the page to load in the previous versions but in the new 3.0.9 one it does:

    The typo is in the next section of issue: 3227188

    Following code added:

    Item.isTextSource = function() {
        return this.ext && this.ext.toLowerCase() === 'txt'; */ add formats as you need after 'txt'; add a coma and another extension, eg.: 'txt', 'csv' */
      };

    where it says */ add it should say /* add, the asterisk on the other side of the bar.

Production build 0.71.5 2024