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.
Quick question about textarea and texttypes
I've two test IDs in my page template
- <perch:content no-index id="textarea_test" type="textarea" label="Text area">
- <perch:content no-index id="text_test" type="text" label="Text">
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 …
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…
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 -…
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.
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…
/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.