Stephen Meehan Student

  • Member since Jan 29th 2019
  • Last Activity:
Posts
57
Likes Received
14
Points
414
Profile Hits
221
  • Stephen Meehan

    Replied to the thread Output categories as an array?.
    Post
    Hi

    Thanks for the example, unfortunately I couldn't get it to work - however I was able to use implode(',', $wlrs_cats[0]['content_type']) to get what I was looking for. Thanks!

    This outputs the category paths of the current item filtered by slug:

  • Stephen Meehan

    Replied to the thread Output categories as an array?.
    Post
    Thanks for the reply.

    If I use perch_categories() or perch_category() how do I relate them to the perch_collection?

    Within perch_collection('Opportunities' the admin might select one or all four categories, I'm looking for a way to expose the…
  • Stephen Meehan

    Thread
    Hi

    I'm trying to access a category set within a perch_collection, but when I run echo all that's output is the word Array?

    (Code, 10 lines)


    How do I output the full Array, I'm expecting to echo a string of all the selected categories.:/
  • Stephen Meehan

    Thread
    Hi,

    When using perch:related it'd be great if the order can be changed within perch:related. At the moment the order is dictated by the order of items in the collection, the order can't be overridden within perch:related?

    • Perch Runway is up to date
  • Stephen Meehan

    Replied to the thread collectionKey question.
    Post
    hus_hmd has created a very neat perch add-on which solves this problem.

    Here's the code I'm using to output items from multiple collections

    (Code, 11 lines)

    Within my post--listing.html template I added <perch:content id="collectionKey" urlify>,…
  • Stephen Meehan

    Posted the thread collectionKey question.
    Thread
    Hi,

    I'm using a list and detail setup to display posts from two collections , it works well but I'd like to be able to use the collectionKey within the template.

    If I can expose it I intend to use it in the ahref, like this:
  • Stephen Meehan

    Replied to the thread Combining Collections?.
    Post
    Finally got around to trying this. It works, and you were right about MySQL 5.7 and strict mode. I followed the instructions in this article to turn strict mode off when using MAMP Pro.

    https://mampsupportforum.com/f…disable-mysql-strict-mode
  • Stephen Meehan

    Replied to the thread Combining Collections?.
    Post
    Byron Fitzgerald thanks for the reply, really appreciated. I've not built this out in Perch Runway yet, but when I do I'll post back here :)
  • Stephen Meehan

    Like (Post)
    You should be able to use an array of collections as the key.

    (Code, 9 lines)

    Although this might not work with MySQL 5.7 as standard, due to strict mode, though you should be able to update the settings as required
  • Stephen Meehan

    Posted the thread Combining Collections?.
    Thread
    Hi,

    I'm working on a Perch Runway website that is likely to have a lot (a lot) of content added to over the next few years.

    I'm trying to figure out the best way to structure it and would welcome any input.

    There will be four main sections
    1. Blog
    2. Case
  • Stephen Meehan

    Replied to the thread Perch v4 license model.
    Post
    There is so much support for Perch, everyone (in the Slack group) wants it to succeed and grow. The current buy once and receive free support/updates forever obviously isn't sustainable. I welcome a move to an annual license update.

    However, it really…
  • Stephen Meehan

    Replied to the thread Database: Find and replace.
    Post
    Hey, thanks for the response.

    All I need to do is replace any mention of `ABC Widgets` with `XYZ Widgets` and update any absolute URLs with a new domain name.

    Is there a better/safer method?
  • Stephen Meehan

    Posted the thread Database: Find and replace.
    Thread
    Hi

    I appreciate this isn't technically a Perch question

    I'm using Sequel Pro on the Mac, after a bit of searching, it looks like I can use a Query like this to find and replace

    (Code, 1 line)


    • Is this a safe way to replace text in a database?
    • Is