My own fabulously stupid blunder : ) I overlooked setting a mailing list group in "newsletter settings" tab, hopefully this note will help a few avoid that error.
Now of course subscriptions and unsubscribes are operating as one would expect, and also newsletters are posting to the groups selected, testing very well so far, many thanks Normann and Sam for developing this, now I can get to focusing on developing an audience for my music.
if($member = $this->CurrentMember()):
// Get member with matching email.
// If logged in user matches that member add them to newsletter group.
if($member->ID == $existing_member->ID):
$newsletter_group = DataObject::get_one('Group', "ID = 4");
return Director::redirect(Director::BaseURL() . 'Security/login');
return Director::redirect($this->Link("/sign-up/?s=1&e=" . $email));
Maybe try putting the form functions in your Page.php Controller, this is important if you want it to be displayed on more than one page.
If there is no form found/returned it will display the message, so I'm guessing its not finding it atm.
Sorry Its not written that well, I'm new to Silverstripe!
You were right.
After putting it into the page.php controller it shows me the form.
but after clicking go i receive an error "Page not found"
and now? :/
another problem is: the jquery imageslider stopped working after adding your codes. i think this is a problem of the page_controller
cause i had this problem on another site too, after adding a contact form code to the page_controller. do someone know how to solve it?