mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Added ConfirmNewsletterSignup_member.ss as an example how to customise, added themedCSS requirements to controller
This commit is contained in:
parent
d1c6825941
commit
d971db30d0
@ -2,6 +2,17 @@
|
|||||||
|
|
||||||
class ConfirmNewsletterSignup extends Controller {
|
class ConfirmNewsletterSignup extends Controller {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add theme CSS requirements to make this look controller look a bit prettier.
|
||||||
|
* If these aren't here, the page looks like a mess to users.
|
||||||
|
*/
|
||||||
|
function init() {
|
||||||
|
parent::init();
|
||||||
|
Requirements::themedCSS('layout');
|
||||||
|
Requirements::themedCSS('typography');
|
||||||
|
Requirements::themedCSS('form');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Action for signing up a member to a given group in NewsletterSignupForm.
|
* Action for signing up a member to a given group in NewsletterSignupForm.
|
||||||
* Used as mysite.com/confirm-subscription/member/123 (where 123 is a md5 hash to find the member)
|
* Used as mysite.com/confirm-subscription/member/123 (where 123 is a md5 hash to find the member)
|
||||||
|
8
templates/Layout/ConfirmNewsletterSignup_member.ss
Executable file
8
templates/Layout/ConfirmNewsletterSignup_member.ss
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
<div id="Content">
|
||||||
|
<div class="typography">
|
||||||
|
<h2>Confirm newsletter signup</h2>
|
||||||
|
$Content
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user