Posts by Loudon

    I'm afraid not.

    When I click on the view draft button I am taken to ...


    instead of


    If I manually type in domainname/blog/post.php?s=PostTitle&preview=all the draft shows properly

    I am able to preview published posts but not drafts. As per the video tutorial on rewrite rules, I have added the following to my .htacess file.

    1. RewriteRule ^blog/([a-zA-Z0-9-/]+)/preview$ /blog/post.php?s=$1&preview=all [L]
    2. RewriteRule ^/blog/([a-zA-Z0-9-/]+)$ /blog/post.php?s=$1 [L]

    Can anyone suggest how I can fix this please?

    I have set up a page where the client can go into the control panel and upload a number of dates and times for appointments. There is also a checkbox where she can indicate if this date is already booked.

    The page then displays a list of dates in a radio box format. If the date is already booked the radio box is disabled.

    When the user selects a date on the page and submits the form, is there any way this can change the value of the 'booked' checkbox?

    This is the full template

    1. <div class="form-check">
    2. <input
    3. class="form-check-input" style="text-align: left !important; font-weight: 100 !important"
    4. type="radio"
    5. name="flexRadioDefault1"
    6. id="flexRadioDefault1" value="<perch:content id="appttime" type="date" time label="Date/Time" format="d F Y H:i" native>"
    7. />
    8. <label class="form-check-label" for="flexRadioDefault1">
    9. <perch:content id="appttime" type="date" time label="Date/Time" format="d F Y H:i" native></div>

    I have a list of dates on a page and I want to filter out all past dates so that only future dates will show.

    I have the following code but cannot see why it doesn't work.

    Thank you for your reply.

    The function isn't crucial but it is mainly for the client rather than the customer.

    On reflection it may be best to move the form from the template to the product page which is php and send from there.

    I have a template which allows a category to be chosen for a product in the control panel.

    1. <perch:categories id="shopcategories" label="SELECT ONE OR MORE CATEGORY" set="shop-categories" required display-as="checkboxes">

    The template also displays a product image and a buy now button.

    I want to feed the chosen category into the buy now button code but can't work out how to do this.

    The section of code in the buy now button is:

    1. <input type="hidden" name="product[]" value=" CHOSEN CATEGORY WOULD GO HERE ">

    Can anyone suggest how I can do this in the html template please?

    In the control panel I have a region and the title of all the items in that region are listed on one page. Is it possible, in this listing, to have another column showing the product number and if so, how would I do this please?

    Thank you. This did indeed allow me to change the Blog title.


    Another option is to change the itemTitle in the database in the perch3_menu_items table.

    This gave me an idea on how to also change the word 'Blog' on the dashboard homepage blog listing to 'News' by going to

    1. addons/app/perch_blog/dashboard.php

    and changing...

    1. $title = $HTML->wrap('h2', $Lang->get(‘Blog’));


    1. $title  = $HTML->wrap('h2', $Lang->get(‘News’));

    I was also able to change the tab name on the blog post list by changing the blog_title
    in perch3_blogs table from Blog to News

    Is it possible for the title tag in post.php to be created by the editor in the control panel so that each blog post details page has a unique title tag?