Posts by Loudon

    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

    Code
    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.

    Code
    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:

    Code
    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.


    Quote

    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

    Code
    1. addons/app/perch_blog/dashboard.php

    and changing...

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

    to...

    Code
    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?

    Can someone tell me how I can exclude categories of blog posts using perch_blog_custom() ?

    At present I have the code below but want to exlude any post with the category of 'resources'.

    Code
    1. perch_blog_custom(array(
    2. 'template' => 'blog/post_in_list2.html',
    3. 'sort' => 'postDateTime',
    4. 'sort-order' => 'DESC',
    5. 'start' => 1,
    6. 'count' => 6,
    7. 'paginate' => true,
    8. ));
    9. ?>