Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Themes

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Signup 'thank you' on homepage


Reply

3 Posts   1059 Views

Avatar
BlueO

3 December 2009 at 8:34pm Community Member, 52 Posts

Hello,

I'm hoping there might be a simple answer to this question: I'd like to have my newsletter signup form redirect users to the homepage and a small 'thank you' div pop up as I'd rather not redirect people to a dedicated 'thank you' page. I've got the redirect fine but i'm struggling to figure out how to make a part of the template dependent on this redirection.

any ideas?

Avatar
Willr

3 December 2009 at 8:51pm Forum Moderator, 5511 Posts

I usually make the redirect to say home/thanks/ then you can make a HomePage_thanks.ss template in your project with the thanks information or you could use session values to store newsletter signup status.

Avatar
BlueO

3 December 2009 at 8:54pm Community Member, 52 Posts

Great, didn't realise the templates worked like that. thanks!