Posts by Glen

    Hi Byron Fitzgerald - wow thank you :)

    Unfortunately, nothing is being displayed, I ran a debug which showed an array error but after fixing that nothing still displays. The updated code I am using is as follows...

    Time ago code...

    Comments code...

    Thank you so much :thumbup:

    This seems odd to me. Normally layouts are string literals pointing to a html file in templates.

    1. perch_layout('time_ago', array(
    2. 'newsDateTime' => date("j M Y", strtotime($newsDateTime)),
    3. ));
    1. perch_layout('layouts/_root_comment_date.html');

    Hi ian Hobbs

    You can pass variables into layouts just like you can with other regions...…nd-nav/layouts/variables/

    As mentioned, it works perfectly well on another site using the blog addon, for some reason I can’t get it to work on this site using the comments addon?


    HI Byron Fitzgerald, sorry me again!

    I have just run <perch:showall> and it is showing that the id postAgo isn't getting passed into the template.

    As mentioned, I have copied everything over from the other site so I'm not sure why this would be.

    Many thanks - it is much appreciated.


    Hi Byron Fitzgerald - I hope you had a great Christmas & News Year?

    I was wondering if you could help me once again?

    I have copied over the timeAgo code to another website but this time into the perch_comments addon. I have copied everything across like for like but nothing is being displayed, would you mind please having a quick look to see what I've missed?...

    ...thank you sooooo much for your help. :)


    Hi Perch Community!

    I am currently building a site for a local magazine and we would like to have a page with all the previous issues on - all 15 years worth!

    I'm adding the previous issues into a collection so I can also include them around the rest of the site too, specially the latest issue. But for the previous issues page I was wondering if there was a way to dynamically divided up the issues by year using just one perch_collection() rather than having one for each year, and then of course having to remember to add a new one each year.

    So far I have...


    Many thanks for your help


    Thanks Byron Fitzgerald for your reply.

    I have now got the php working but I still can't seem to pull in the blog post date from Perch. The output I get is "1 Jan 1970" but if I manually include a date it works perfectly....




    Any help to point me in the right direction would be must apricated.


    Hi Everyone.

    I have a news based client / website for which I am using the blog app for and I am wanting to have a more dynamic way of displaying when the post was published.

    You see this method quite a lot on most news sites, for example on BBC News, where instead of displaying the date itself, you display "4 hours ago" or "2 days ago" etc.

    I'm guessing the best way to do it is to write a php script to generate to output and then pass that via PerchSystem::set_var('name', 'value') , but I was just wondering if anyone done this on Perch or would know the best way to achieve this?

    Many thanks



    I have added a new master page via FTP, gone to add a new page in Runway but the new Master page isn't listed in the dropdown.

    I have gone into 'Master Pages' to try and kick start the new page but that hasn't worked either.

    As you can see, the FTP is showing the am_project_management directory on the server (which has a .html file within it) but the Master Page dropdown, when trying to add a new page, in Perch isn't picking it up...

    ftp-file-directory.png          perch-pages-dropdown.png

    ...any help would be gratefully received.

    Hi drewm

    Sorry for the delay, this new forum doesn't automatically send you an email when someone replies, which is a bit annoying.

    The only thing that <perch:showall> shows with regards to the brand is the brand ID number. As mentioned I can get the brand name to display but not the slug.

    Many thanks



    I am trying to output the brand slug on a product page as so...

    1. <a href="/shop/brands/<perch:shop id="brand" type="shop_brand" output="slug" />"><perch:shop id="brand" type="shop_brand"></a>

    ...the brand name displays perfectly but the brand slug isn't outputting at all...

    1. <a href="/shop/brands/">SKINADE®</a> can I output the brand slug on the product page please?

    Many thanks

    Hi Drew,

    I had updated from v3.1.3 - However no need to worry as my bad, I had forgotten I needed to make an update to the /perch/config/buckets.php file. :whistling:

    All working now



    This has only just started to happen so I'm guessing it's a bug since upgrading to 3.1.4?

    When I try to select an asset, it selects it fine, click save and it hasn't saved it. The default grey upload icon appears in the CMS admin and no image is displayed on the website.

    Looking at the source code I get <img src="""



    1. <perch:shop id="image" type="image" label="Main product image" width="1500" height="1500" crop="true" bucket="products" help="NB: Image will be cropped to 1500 x 1500 pixels" suppress="true" divider-before="Product images" order="300">
    2. <perch:shop id="image" type="image" width="750" height="750" crop="true" suppress="true" order="310">
    3. <perch:shop id="image" type="image" width="1200" height="630" crop="true" suppress="true" order="320">
    4. <perch:if exists="image">
    5. <img src="<perch:shop id="image" type="image">" itemprop="image" alt="<perch:shop id="brand" type="shop_brand"> <perch:shop id="title">">
    6. <perch:else/>
    7. <img src="/cms/resources/products/product-image-coming-soon.png" itemprop="image" alt="<perch:shop id="title">" class="noimg">
    8. </perch:if> you will see, I use perch:if to display an image coming soon image, which also is not displaying, so it would seem the system knows the image is there but is not saving it?

    Many thanks