Figured it out.
Found this post
I was looking at the debug on the page, not in the control panel (!).
I had this error in Perch control panel:
(Code, 1 line)
Within Google API settings 'Application restrictions', I had restricted the API key to a…
YouTube embeds are working using the YouTube Fieldtype
I've setup my YouTube API key, and checked Debug (no errors).
(Code, 2 lines)
However, I've been unable to get any other output types to work?
(Code, 4 lines)
Screenshot below shows …
Came up with a solution...
I created a couple of variables, one to check the current category. And another so I could use id="cd_form", from a category template in my blog template.
I'll post it here next week.
Thanks for the replies ryan , have a…
At the moment I've hardcoded the control-and-display category, this will be a variable
I would have thought 'category' => 'news/control-and-display/' would have done the trick - but it looks like it's being ignored as perch_blog_custom is still…
I've used perch_item_first in the past, but in this instance I need the ID to be pulled from a specific category.
A bit of background: I've added a third-party form to my website, each category has a different form. The form is identified by a…
I'm using id="cd_form" from a category template in a blog post - this bit works...
The problem is when a blog post is associated with more than one category, id="cd_form" is displayed twice (or however many categories the post is linked to).
To add my thoughts:
- Clients have been worried to Undo as it's such an immediate action, and there's no way to redo.
- Be nice to view full revision history from the actual edit page (as Hussein mentions)
- It'd be shame to lose it all together, but I…
Hello Stephen Meehan
How are you outputting your template?
You can only pass a variable to a template that's processed at run time. So if you're outputting the template with perch_content(), it won't work.
Ah, of course! Friday afternoon brain failure. Thanks, it works now.
Anyone needing to do this just do this:
(Code, 3 lines)
Add this to your HTML page template
(Code, 1 line)
Make sure you're using perch_content_custom to render the…