• Resolved westerdaled

    (@westerdaled)


    Hi

    I have enabled the REST API support + all fields, on my (first ever) pod ??. It is great to see the familiar Gutenberg block editor. However, I notice the template editor doesn’t support blocks at the moment, so is this support planned? Are the example templates out there for common scenarios such as contact cards, master-detail etc?

    My other question is, can I reference the my pod fields directly in my main post content ( Gutenberg / TinyMCE Advanced). If so, would I need the template?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter westerdaled

    (@westerdaled)

    Following up on the second paragraph, I think the answers is that I would need a plugin like Elementor to reference the POd fields on the main body , say in a Html block. Can somebody please confirm this the case?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @westerdaled

    The Pods templates do not use Gutenberg blocks at the moment.

    My other question is, can I reference the my pod fields directly in my main post content ( Gutenberg / TinyMCE Advanced). If so, would I need the template?

    Please see this introduction video about Pods: https://docs.pods.io/videos/grow-beyond-posts-pages-introduction-pods-framework/

    Cheers! Jory

    Thread Starter westerdaled

    (@westerdaled)

    Jory

    Thanks for the info. I will did watch most of that video which is really good. Not sure that it shows how to add magic tags, outside the pods template.

    Regards

    Daniel

    Plugin Contributor Jim True

    (@jimtrue)

    You can do them within a pods shortcode (that’s a custom template):
    [pods]... custom template here ... [/pods]

    Or you can call a Pods Template in a pods shortcode:

    [pods template="name of template"]

    Thread Starter westerdaled

    (@westerdaled)

    @jimtrue

    You suggestion is useful, as I can inject the custom template markup in the main body of my block style post. What I can’t do is reference an individual post field and say use it in a block or custom html. This is not the end of the world but does add to the maintenance effort, as the pod field value will need to be copied and used wherever it is needed. Consequently, if the pod field value changes, this will need to be reflected in each of the copies.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Creating templates with Gutenberg blocks’ is closed to new replies.