Closed (fixed)
Project:
Search API Saved Searches
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2011 at 22:36 UTC
Updated:
17 Oct 2015 at 10:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Adam S commentedI read it once then read it again and found this token [search-api-saved-search:delete-url]. That should do the job.
Comment #2
Adam S commentedI'm opening this again because this token should either be added to the default or added to documentation somewhere so it is more intuitive.
Comment #4
drunken monkeyWould the attached patch be suitable in your opinion?
Comment #5
Adam S commentedWhich patch?
Comment #6
drunken monkeyOops.
Comment #7
fangel commentedI'd say the patch is a step in the right direction. But now the standard email for anonymous users, would be
---
You can configure your saved searches at the following address:
---
Which is kinda un-intuitive, as it says "at this address", and then doesn't list one.
How about substituting the [user:search-api-saved-searches-url]-token with "You need to have a user account to edit your saved searches", or something to that effect?
Regards
Morten
Comment #8
RAWDESK commentedHi,
I've been testing this saved search module also recently and would like to share my comments on its usability for anonymous users.
In attachment you can find my implemented save searches block.
This is the place most users would return to if they'd like to alter or re-execute their search manually.
Therefore the token [user:search-api-saved-searches-url] is part of my description and guideline to earlier performed searches.
I think it is essential at e-mail activation that an anonymous user is informed about the fact an account will be created automatically by confirming his first search action.
So rather then providing a delete link inside the search notification emails, it would be better to facilitate customer (re-)engagement by means of a login.
Hence, one could even attach a reduction coupon to this first engagement effort.. to drive more sales.
Technically, what would be needed to have the account creation implemented behind a first saved search ?
Comment #9
RAWDESK commentedHi,
I just answered my own last question by adding this code into the search_api_saved_searches_save_form_submit() function of search_api_saved_searches module.
New code starts from the comment line // If user is still unknown...
The anonymous user now receives 2 emails :
-first : the user registration confirmation, which holds a one-time login link to (re)set the password
-second : confirmation of the saved search and invitation to enable the email update subscription.
Comment #10
drunken monkeySince the issue is bumped already, here is a re-roll of the patch, as well as a version without the message default change.
If no-one complains, I guess I'll commit the fix-only version, since it still appears to be relevant.
Comment #11
rksadit commentedIm using search_api_saved_search block. i want to redirect my page to login page for anonymous users, when they click on save button.can anyone help me to achieve this?
Comment #13
drunken monkeyOK, committed the fix-only version. Please re-open, or open a new issue, if you have good suggestions on how to improve this further.
@rksadit: You probably need to implement
hook_form_search_api_saved_searches_save_form_alter()and add a fitting$form_state['#redirect']either there or, probably, in a submit handler.However, please create a new issue for such questions next time, it doesn't really have anything to do with this issue.