Hi, I'd like to know if how to make a 'quick contact' form in footer of every page (global form).
This is just the sort of thing that I would like on my personal site but I'm having issues -- when I add form code to Page.php I can't rebuild DB. Don't think there's anything deprecated as it looks like fairly standard php expressions -- but then again I'm really a graphic designer, not a programmer per se.
Can somebody please advise:
1. What is the difference between 'private static' and simply 'static'
2. Has the expression 'static' become deprecated in SS3?
3. Do I need to 'thread' (concantenate) form code into code already on Page.php (below)
Hi thomas.paulson, would you believe it's taken me almost a year to get back to this? Obviously because it's for my own website!!
Your module works a treat -- almost too easy to install! Just one question though -- I'm wanting to add some sort of captcha (as I'm putting this on every page I could be drowning in spam if I don't). I've looked at SpamProtection Module https://github.com/silverstripe/silverstripe-spamprotection which integrates with Mollum, Recaptcha and other implementations. Only problem is I can't see how to enable this.
Instructions are that I call SpamProtection as follows:
// your existing form code $form = new Form( .. ); $form->enableSpamProtection();
Have tried at bottom of form code itself and also in the footer.ss include. Wherever I put it I see ->enableSpamProtection(); on my page.