Posts by granttransition

    This is pretty close to what I am after…


    I just need them in date order now…

    Hello,


    I am trying to output blog posts in date order whilst limiting other parameters such as the category.


    Ultimately I want six blog posts listed in date order; however, I am always showing x1 video, x1 podcast, x1 blog and x3 news.


    Whilst I have come close with a pure PHP way of achieving the goal, I've hit a snag whilst trying to output the Category Icon I have created. This appears to be ignoring the category array altogether?



    The above is my current code.


    Ideally it would be nice to build up some filters and then just do something like…


    PHP
    1. perch_blog_custom([
    2. 'sort' => 'postDateTime',
    3. 'template' => 'home/_blog-card.html',
    4. 'sort-order' => 'DESC',
    5. 'filter' => $news,
    6. ]);

    Appreciate any helped offered

    That's a very reassuring George G . I feel a relief now that I won't have to move x number of websites away to a different platform simply because SCA compliance.

    Personally I am becoming less confident this issue will ever be looked at. It's been two months now without any update on what is going on. That's on top of the two years we have been suffering the Perch radio silence.

    Hi,


    It's been a long time since I looked at a straight Perch site and hence I have a feeling I'm about to embarrass myself. Again :D


    I have my master page created in /templates/pages/ and this displays in my dashboard with the following settings


    Screenshot%202021-02-24%20at%2012.16.52.png?dl=0


    When I create a new page from the Fundraising => New Subpage option, I fill the next section with the relevant details

    dashboard-2.png?dl=0

    The issue is the paths that are created upon creating a new page.


    To use the above as an example, my New Test page gets a location path of /fundraising/Users/Grant/####/####/####/####/fundraising/new-test.php and the ####/fundraising/new-test.php has


    PHP
    1. <?php include(str_replace('/', DIRECTORY_SEPARATOR, '../../../grant/####/templates/pages/fundraising.php')); ?>

    When functioning correctly the above should be


    PHP
    1. <?php include(str_replace('/', DIRECTORY_SEPARATOR, '../####/templates/pages/fundraising.php'));

    So I appear to have some kind of routing issue?

    Although I will be adding a template, I don't think it's a requirement. I tried with just in case I'm wrong and it still doesn't work.


    Thanks for the suggestion though.


    The mystery continues X(

    I'm having an issue with Navgroups not rendering? And I can't work out why.

    PHP: fund-raising.php
    1. <aside class="inner-right-column cf">
    2. <div class="side-links-hero">
    3. Test
    4. <?php perch_pages_navigation(array(
    5. 'navgroup' => 'fund-raising-menu',
    6. 'levels' => 1,
    7. )); ?>
    8. </div>
    9. </aside>

    The above is my code from the page template which renders…

    HTML: rendered-html
    1. <aside class="inner-right-column cf">
    2. <div class="side-links-hero">
    3. Test
    4. </div>
    5. </aside>

    If I add a second navgroup just to see if it renders, it does…

    navgroup.png?dl=0

    fund-menu.png?dl=0

    It just isn't making sense

    George G


    Welcome to the new developers, I'm really pleased your working on moving Perch forward.


    Stripe SCA is a rather pressing issue, my understanding is that Stripe will be enforcing in September.


    Whilst I appreciate you have inherited the problem I'd like some reassurance this is going to be looked at relatively quickly. This effects a few of my Perch Shop sites and hence I need to know so I can make decissions on whether I need to move the sites. I'd prefer not to I may add, but if its not going to be looked at I will have no choice.

    I'm not sure if this is my implementation, reCaptcha or mbk_forms.


    Basically I have followed ryan git instal process for v2 reCaptcha, (v3 resulted in too many genuine messages being spammed unfortunately) and everything works. However, my client would prefer the invisible version of reCaptcha, the codes were generated using invisible settings, however the reCaptcha checkbox appears?


    Is there an step i've missed or is this not supported?

    Is there an update on this please drewm? This issue is now nearly a year old, and this post is in its second alliteration? I know Byron Fitzgerald has done some great work but it would be nice if we could get an update on whether a solution is being worked on?


    Perhaps Byron Fitzgerald wouldn't mind his solution being integrated into Shop somehow?


    Thanks

    I am trying to display some text and relevant information from my Events Collection based on todays date.


    I started by writing a system varible in templates/pages/events/detail.php.

    PHP: detail.php
    1. // Set todays date
    2. PerchSystem::set_var('today', date('Y-m-d'));
    3. // Pass date into template
    4. perch_collection('Events', [
    5. 'template' => 'events/event/_enter.html',
    6. ]);

    <perch:showall> confirms that today is avaible for use.


    My Events Collection is quite verbose due to each event having three pricing levels, Early Rate, Reduced Rate and Standard Rate.


    I would like to take the closing day date for the relevant price level, see whether that date is in the past or future, and display the relevant pricing level text.


    I am having issues getting my conditional to display the correct text. Currently it displays the first two if statements, when I was expecting the third.

    events_price_indv_er_cl => 31/10/2019

    events_price_indv_rr_cl => 04/01/2020

    events_price_indv_sr_cl => 30/08/2020


    The way understand the to work is, if date is less than or equal to today's date display the content.


    I'd appreciate some guidance on the conditional as I am clearly not understanding this fully.