This is absolutely fantastic module, I LOVE it, I am so glad I discovered it, and I will be using it all the time.

That said, my clients will not. They will never remember the shortcut, and if they could, they'd never remember to use it. I need to put a big button somewhere that activates this, and then I think they will find great use out of it!

Is this currently possible? If not, is it something that could be accomplished without hacking the module? And if not on that as well, is there any chance of it being implemented :D

Thanks for the insanely great module idea and executed fantastically.

Comments

maartenverbaarschot’s picture

Thanks for the kind words, and yes it's possible without hacking the module :)

Make a link like this:

<a href="#" data-toggle="coffee">Toggle Coffee</a>

And a JavaScript file, in a theme or custom module:

(function($, Drupal) {
    $('[data-toggle="coffee"]').click(function(e) {
        e.preventDefault();
        Drupal.coffee.open();
    });
})(window.jQuery, window.Drupal);

We are working on Coffee v2 with a clickable link by default, and additional links can be created without writing JavaScript. But for now the above solution will work.

maartenverbaarschot’s picture

Category: feature » support
Status: Active » Fixed
TelFiRE’s picture

w00t! Just what I needed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.