Posts by granttransition

    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.


    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


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


    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

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

    When functioning correctly the above should be

    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…



    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.