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   1123 Views

Avatar
BlueO

Community Member, 52 Posts

3 December 2009 at 8:34pm

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

Forum Moderator, 5513 Posts

3 December 2009 at 8:51pm

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

Community Member, 52 Posts

3 December 2009 at 8:54pm

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