Creating, editing and deleting Low Search Shortcuts in the front end.
Low Search seems really close to being able to have any member manage Shorcuts. It would be amazing if a member could create/edit/delete their own shortcuts. As a tool I think this could be really beneficial for returning visitors!
Replies
Low 10 Dec 2014 10:18
When I started with Shortcuts, I thought that would be the way to go, too. However, there are a couple of tricky gotchas.
Shortcut names should be unique. If you allow members to create their own shortcuts, then they should be unique across all members. That means it would be quite limited.
To overcome this, you could make the member
Jordan Sowers 10 Dec 2014 18:53
Thanks for the reply! I totally agree with your last point about actually needing a feature like this, but it could be a great way to differentiate our site.
I was thinking of something similar as your other points, too.
Taking:
{exp:low_search:shortcuts group_id="1"}
{if count == 1}<ul>{/if}
<li><a href="{path="search/{shortcut_name}"}">{shortcut_label}</a></li>
{if count == total_results}</ul>{/if}
{/exp:low_search:shortcuts}
And adding the {member_id in} the group_id="" paramter, and adding the member's id in front of their label or at the end. Not the prettiest URL, but it could be a way to only show logged in members their saved searches. The thing I ran into is letting them be able to delete their saved searches.
Sounds like i'll need to look into some customization or hooks.