Posts by edward Johansen

    After an updating my blog from 5.6.1 to 5.6.3 creates throws a 404. If I revert to Blog app 5.6.1 everything works as expected.


    All <perch:blog id="postURL" /> throws a weird link like:


    /news/20utc6-000000tuesday304806pm30utc-70000004820utc6-3048tuesday-07pmtue,%2020%20jun%202023%2019:48:00%20+0000f20utctue,%2020%20jun%202023%2019:48:00%20+000064867-pm000-btuesdaypm2023-06-20t19:48:00+00:00k-06pm06bpm-06pm6304800


    How did this happen?


    Blog post page path: /news/{postSlug}

    Slug format: {postTitle}


    My routing token in runway.php

    Code
    1. 'routing_tokens' => [
    2. 'blogslug'=>'[a-z0-9\-]+'
    3. ],

    PHP 8.2.21 is up to date

    Perch: 4.9


    Anyone else had this issue?

    Hi,

    I know you can exclude a search result from the menu structure like /en. But how to exclude it from the search result?


    <?php
    $query = perch_get('q');
    perch_content_search($query, array(
        'count' => 12,
        'from-path'=>'/', <= how to make it only search on the first level of the menu structure
        'excerpt-chars'=>300
    ));
    ?>


    Thanks in advance

    Hi,

    I have a website with to languages.


    The root site domain.com (norwegian), and the english site url is /en.


    The 404 error page for the main url is working fine, but /en is not. I have created .php template for the english page in at the base of Home folder structure called "errors"


    The site structure


    Main site URL

    Errors (Path: /errors)

    - 404 (Path: /errors/404)


    English URL

    Home

    - Errors (Path: /en/errors)

    -- 404 (Path: /en/errors/404)


    Do I have to create a URL pattern for the /en part, or edit a file?


    Thank you in advance

    After changing slug format to {postTitle} and Blog post page path: /blog/{postSlug}, all of my blog post is getting 404 redirect. Please help...live site (I know I got careless)


    .htaccess


    My post php


    Extended diagnostic


    I have a php code where I want the page ID and Page Title inside a PHP code. Can anyone help me with this? Thanks



    PHP
    1. <?php
    2. $cmtx_identifier = 'I want perch page ID here';
    3. $cmtx_reference = 'Perch title here';
    4. $cmtx_folder = '/comments/';
    5. require($_SERVER['DOCUMENT_ROOT'] . $cmtx_folder . 'frontend/index.php');
    6. ?>

    My navgroup is not showing when adding template path.


    No errors is showing on debug