Posts by granttransition

    Gareth S

    Whilst I appreciate there has been an attempt at fixing the Shop SCA issue. It does not work and isn't php 8 compatible, despite the claims. When are we likely to see the above fixed? Bearing in mind SCA deadline.

    P.s. When the SCA deadline passes and my customers quite rightly start complaining, where can I direct their complaints?

    • Perch version 3.2, blog and the other first party addons with PHP8 - I have raised this direct with the developers this morning, they have confirmed that it should be fully compliant with PHP 8, though obviously we'd always recommend making any changes on a test environment first.

    Regarding the above comment

    PHP: Mailchimp error
    1. : Uncaught Error: [] operator not supported for strings in ####/addons/apps/perch_mailchimp/dashboard.php:55 Stack trace: #0 ####/core/dashboard/modes/ {closure}(Object(PerchAuthenticatedUser)) #1 ####/core/dashboard/index.php(20): include('/Users/grant/Si...') #2 /Users/grant/.composer/vendor/laravel/valet/server.php(235): require('/Users/grant/Si...') #3 {main} thrown in
    2. ####/addons/apps/perch_mailchimp/dashboard.php
    3. on line
    4. 55

    Sorry if this has been mentioned already, I haven't been through all the posts.

    A native way to handle publishing would be great, so published, unplublished etc for all types of content including pages.

    I appreciate this can be coded in, but a native way of handling this would be nice.

    Actually I found a way, I used <perch:categories id="perch_categories" set="blog">. So id="perch_categories" instead of id="categories".

    Thanks all for the help. My final card template now looks like this…

    Oh really? Thats odd then, as the category stuff doesn't work in this template…

    When that is called via perch_blog_custom everything works as expected?

    Hi Byron Fitzgerald ,

    With some tweaks we have success! However, this does cause one further issue…

    Here is the current code

    Which now calls the content/home/_blog-card.html. Ideally I wanted to use the /blog/home/_blog-card.html template as it uses the category info to do other stuff.

    Here is that template…

    So whilst I can move this to content/home/… and change perch:blog to perch:content. The same is not true for the perch:categories

    Thanks ever so much for the help thus far…

    I now get a Template file not found: templates/home/_blog-card.html even though the template is defiantly in the right place.


    Debug also shows…

    1. Array
    2. (
    3. [type] => 8
    4. [message] => Trying to access array offset on value of type null
    5. [file] => /Users/grant/Sites/Development/180-Cargilfield-Perch-Updates/cms/templates/layouts/home-blog-grid.php
    6. [line] => 33
    7. )

    Which is…

    1. return strtotime($b[0]['postDateTime']) - strtotime($a[0]['postDateTime']);

    I really appreciate the help, but unfortunately this outputs the template, but the perch fields are empty.

    So there is no confusion, here is the current code…

    This is pretty close to what I am after…

    I just need them in date order now…


    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…

    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.