Workflow for Favorites Module During Login - Return URL Needed? 
Posted: 09 July 2008 05:25 AM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  32
Joined  2007-06-19

Hi there,

I wonder if someone could help me out with the workflow of the Favorites (sic wink) module please?

I have a website with a directory of events, and I want users to save their Favorite events.

On each event page, there’s a link that says ‘Add to Favorites’

When a user clicks this links and they are not logged in, they are prompted to enter their username and password.

But the login form doens’t continue the process of adding the event to the Favorites list - instead, it takes the user to the Favorites list and whatever was in that list (i.e. not the even they have just tried to add).

Is there any parameters/tags or other code I should be using to get the login form to add the Event at the same time as logging in?  I was thinking maybe something to do with the return URL for the login form or something but I’m a bit lost for ideas on what code I can use to get this URL?

Thanks for any advice,

Ste

Profile
 
 
Posted: 09 July 2008 07:22 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3374
Joined  2006-10-18

You could probably set the Return parameter URL to have Segments in it: smile

return="favorites/list/{segment_3}"

 Signature 
Profile
 
 
Posted: 14 July 2008 05:56 AM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  32
Joined  2007-06-19

Thanks Pie Man, that worked a treat! grin

Thanks,

Ste

Profile