Stephen Meehan Beginner

  • Member since Jan 29th 2019
  • Last Activity:
Posts
10
Points
70
Profile Hits
12
  • Stephen Meehan

    Thread
    Hi,

    I'm planning a jobs listing section, I was wondering if it's possible to serve a custom 404 page if a user tries to view a job URL that has been removed from the website.

    It'd be useful to display a unique 404 page for this purpose.

    I've looked…
  • Stephen Meehan

    Replied to the thread Empty textarea versus empty text.
    Post
    Thanks for the replies, I was just curious if it was supposed to work like that or not.
  • Stephen Meehan

    Thread
    Hi,

    Quick question about textarea and texttypes

    I've two test IDs in my page template
    1. <perch:content no-index id="textarea_test" type="textarea" label="Text area">
    2. <perch:content no-index id="text_test" type="text" label="Text">
    Before I add any…
  • Stephen Meehan

    Replied to the thread isset fallback not working?.
    Post
    Great stuff, this works a treat. Thanks again!
  • Stephen Meehan

    Like (Post)
    You can change the if statement to:

    (Code, 3 lines)

  • Stephen Meehan

    Like (Post)
    Hello Stephen Meehan

    I would use perch_content_custom() to output all the project meta tags:

    (Code, 8 lines)


    And you can rely on conditional tags inside the template for the check you're currently performing in PHP.

    ---

    Back to your code. PHP's
  • Stephen Meehan

    Replied to the thread isset fallback not working?.
    Post
    Hi hus_hmd

    Thanks for taking the time to respond, appreciated.


    This makes sense:
    (Quote from hus_hmd)


    Using var_dump($project_details);, I found seo_description had a value of ["seo_description"]=> string(0) ""

    What confused me was the if…
  • Stephen Meehan

    Posted the thread isset fallback not working?.
    Thread
    Hi,

    I've simplified this post.

    seo_description is empty in the CMS, I'd expect the fallback message to show, but the page is behaving as if seo_description has a value.

    It's showing the Only show if seo_description has content in the CMS message -…
  • Stephen Meehan

    Like (Post)
    (Quote)

    Ok, that's fine, but just as long as you're aware you're fighting against the system rather than working with it.

    (Quote from Stephen Meehan)

    Yes, you can use the skip-template option to return the content to the page before it's output.
  • Stephen Meehan

    Post
    Thanks Drew,

    I decided to use one region as you suggested.
  • Stephen Meehan

    Post
    The example shown is a bare bones version of a bigger template, I'd rather not combine into one region if possible.

    Is there a way to pull the content out of perch_content_custom before it's output to the page, and then use the IDs in another…
  • Stephen Meehan

    Thread
    /shared.php has multiple regions each one has a unique template/IDs. I've used IDs from two regions, and added them to cta--box.html.

    I was hoping to output the `IDs` from multiple regions into one template, but it's not working as expected.


    This is…
  • Stephen Meehan

    Replied to the thread Problems logging into Perch.
    Post
    Hi Muriel,

    If you need assistance fixing your Perch website, get in touch via my website. I currently have availability this week to fix your website, I can provide an estimate if you like?