Stephen Meehan Beginner

  • Member since Jan 29th 2019
  • Last Activity:
Posts
21
Likes Received
1
Points
141
Profile Hits
47
  • Stephen Meehan

    Replied to the thread YouTube Fieldtype question.
    Post
    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…
  • Stephen Meehan

    Replied to the thread YouTube Fieldtype question.
    Post
    I added it before.
  • Stephen Meehan

    Replied to the thread YouTube Fieldtype question.
    Post
    The video (on YouTube) has a title, description and a date.

    I'm not sure why it's not pulling any other data in?

    Does the perch template look correct?

    Is there anything else I can check?
  • Stephen Meehan

    Posted the thread YouTube Fieldtype question.
    Thread
    Hi,

    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
  • Stephen Meehan

    Replied to the thread Limit content to one category?.
    Post
    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…
  • Stephen Meehan

    Replied to the thread Limit content to one category?.
    Post
    Hi

    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…
  • Stephen Meehan

    Replied to the thread Limit content to one category?.
    Post
    Hi,

    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…
  • Stephen Meehan

    Thread
    Hi,

    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).

    How
  • Stephen Meehan

    Like (Post)
    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…
  • Stephen Meehan

    Post
    Hi @owainbrowne

    Thanks for the suggestion, getting the variable working as above is fine for now.
  • Stephen Meehan

    Like (Post)
    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.
  • Stephen Meehan

    Post
    Hi hus_hmd  

    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…