• Resolved @PhilipHoy

    (@venomphil)


    Hi Pods community,

    First time pod user; I’d like to know is there a way to extend pages with pods that are locked to a template. For example I have come custom fields for my home page that I don’t want to show within the editor for my contact page.

    I feel for a user it may be confusing to edit the contact page and see custom fields for the homepage that are not being used. This maybe a basic question but I cant see if/where there is a way to do this

    Thanks in advanced for any help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @venomphil

    Pods 2.8 introduces field groups. While conditional logic will probably be a point release after 2.8 we are planning to introduce such filters!

    You could use hooks (PHP) and exclude fields based on the current post’s properties.
    See filter: pods_meta_post_fields
    https://github.com/pods-framework/pods/blob/main/classes/PodsMeta.php#L1130-L1141

    Cheers, Jory

    Thread Starter @PhilipHoy

    (@venomphil)

    Hi @keraweb,

    I’m currently on 2.7.22 – Looks like I’ve joined Pods just before the release I need?

    Would this solution remove the fields from the backed end when for example an author updates the contact page but sees a bunch of input fields for the homepage?

    I’m not so worried about the front end as i’m programmatically calling the individual fields at template level

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Extend pages to specific template’ is closed to new replies.