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:
User selecting desired shortcut set:
Add to shortcuts:
Include query params in link:
Interesting, must give it a try.
I showed this to @gbathree recently!
Pretty cool to see the custom shortcut paths idea!
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
@mstenta, possible to have this enabled on hosted farmOS?
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
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. )
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
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 drupal.org/project/drupal but didn’t see anything. Maybe we discovered a new one.