Happy Files in Cornerstone

I tried the plugin “Happy Files” (https://happyfiles.io/) to organize the media library on a big site but unfortunately Happy Files does not work inside Cornerstone. Even with the latest version, which has some tweaks to force the Happy Files interface to get loaded (The new “Enforce loading” setting under Settings > HappyFiles ensures HappyFiles is loaded throughout the admin area and/or frontend for logged-in users. This only enable to use HappyFiles with third-party plugins and themes that are not officially supported (e.g. some page builders, etc.)), it does not work :frowning:

Is there a documentation how to implement an external plugin in Cornerstone?

That section in the docs is about as close as you’ll get to this. Some more could be added to the developer section. Just let me know what your trying to do and I’ll help out for now.

I would probably add an action like the following to make sure it’s loading. Most likely Cornerstone runs before happy files has it’s chance. Let me know what combination worked and I’ll see what we can do on our end.

// or cornerstone_before_wp_editor
add_action("cornerstone_before_boot_app", function() {
  // Or whatever needs to happen IE require_once or a different action
  apply_filter("happy_files_load"); 
});
1 Like

Thank you, charlie. I will forward this to the dev :slight_smile:

1 Like

Hey charlie, even with your hint it does not work :frowning:
Do you have any further idea?

Thank you!

Changing a variable like they are wouldn’t trigger anything to happen. They need to load what they need to load in that filter. If load_plugin also needs to be true, well then that’s just the start. window.HappyFiles isn’t on the cornerstone page.

If they want they can send their plugin to info@theme.co and we can take a look in the future.

1 Like