Posts by TomL

    Forms App - please do keep the Akismet integration but also some built in spam prevention options would be good like a maths question controlled by the user, or recapthca (@ryan did a great job with mbk_forms).

    The honeypot field works a bit but without akismet my clients get spammed to death.

    Client is getting spammed to death but doesn't want to pay for akismet. The honeypot collects probably half of the spam messages but the rest get through - approx. 25 messages per day about covid masks/viagra etc.

    Could the form validators described on this page be used to set up a maths question or homemade captcha for preventing spam, or am I barking up the wrong tree?

    Thanks in advance,


    Hi, is there a perch content equivalent of perch_blog_post_field. I'm looking to replicate this for a list and detail page.


    $title = perch_blog_post_field(perch_get('s'), 'postTitle', true);

    perch_layout('global.header', array(




    In the above code I'd want to relace postTitle with serviceTitle. Does anyone know what I could put in place of perch_blog_post_field to get the serviceTitle from the query or am I completely barking up the wrong tree.


    Thanks Hussein, you were right about the html files, but WorldPay actually specify how they are named and used (at least for my account type: "Select Junior"). I've had to upload 'resultY.html' (success) and 'resultC.html' (cancellation) to a File Manager within the Business Account Dashboard and then the customer is redirected back to my site with a meta refresh after purchase. They gave me a template for this. Maybe Drew and Rachel went through a different process for the Docs but this is how WorldPay told me to do it in case anyone else goes through the same process.


    I did see it, thank you, but WorldPay isn't redirecting back to the development site after a successfull test payment so perch never logs the purchase. Just wondered if anyone else had seen the same thing. No worries,

    Follow up question: if test mode is set to true, would orders still show up in the CMS? I'm just struggling to get WorldPay to redirect to the return_url on test transactions, Anyone out there with experience in worldpay as the gateway? Thanks, Tom

    Hi, the docs for WorldPay say 1. When you’re ready to check out, call perch_shop_checkout() (with your options) at the top of your page before any HTML is output. How do you add those options in?

    Hi, if a search form is included on a page in a subfolder like /blog/ then the form below will try to go to /blog/search.php. How do I include the root of the site in the action="" attribute. Does it have to be manually like http://localhost/ and then change that to the site address later?

    I tried including a layout template in the search-form.html template i.e. action="<perch:layout path="global.url"/>/search.php" but this didn't work. - Happy to be called dim if that's what I'm being.

    <perch:form id="search" method="get" action="search.php"></perch:form>