Shortcuts module

Wanted to share the Drupal core Shortcuts module. I’ve seen this before and meant to share but I don’t think I see it here on the forum, perhaps I mentioned in chat. Alas, some may find it useful as a way to quickly navigate to assets or any other pages that are frequently used.

I’d like some favorite assets exposed directly on the dashboard for quick access.
CC @pat : Equipment use logs - #15 by pat

The module allows you to create “shortcut sets” that are collections of links. Each user can choose a single shortcut set that is available at the top toolbar. Most pages (including assets/logs/other entities) have a star icon that makes it easy to add links to the user’s current shortcut set. Links can also include query parameters which is cool because you can provide filters to the Assets/Logs table views (only show assets with a given flag, or animals of a specified breed).

Note: this is a drupal core module that can only be enabled by the farmOS site admin. I believe it also requires a permission to allow other users to use it.

Here are some screenshots:

Shortcut sets:

Shortcuts toolbar:

User selecting desired shortcut set:

Add to shortcuts:

Include query params in link:


Wow… that was cool.


Interesting, must give it a try.


I showed this to @gbathree recently! :slight_smile:

Pretty cool to see the custom shortcut paths idea!


I’m loving this Module!

1 Like

Wonder if a simple farm_shortcut shim module in farmOS core would make any sense? At the very least it could provide the necessary permission to all “managed” roles, any necessary configuration (?), and show as an option in the /farm/settings/modules form.

1 Like

@mstenta, possible to have this enabled on hosted farmOS?

1 Like

@pat Done!

1 Like

Hmm maybe I missed something when I enabled it, because @pat is getting “Access Denied” when trying to add shortcuts. But it’s working on @AmberS’s instance.

I enabled the shortcut module and added these two permissions to the authenticated role:

  • access shortcuts
  • customize shortcut links

I think that’s the same thing I did on @AmberS’s (double checked the permissions and they are the same) - but maybe I’m forgetting something?

(Another reason why it might be nice to have a farm_shortcut module that sets all this up, so I don’t have to remember how to do it manually. :sweat_smile: )

The only other difference I can think of is that @pat’s instance has translations enabled. I wonder if that is affecting things? I will have to test more when I have some time…

Sorry @pat - hopefully I just forgot something and we didn’t discover some strange Drupal core bug here.


Hah… good thing we have some experienece in such cases
I switched to UK language, and it works perfect :slight_smile:


Switched back to NO language, and (maybe obvious) the shortcuts works, but not possible to add new or edit existing.


Ah bummer. I did a quick search for existing bug reports in but didn’t see anything. Maybe we discovered a new one. :person_shrugging:

1 Like