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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

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

Signup 'thank you' on homepage


Go to End


3 Posts   1692 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, 5523 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!