ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Hiding P&T Pill or Switch Fields in Publish Layouts

December 22, 2011 8:44am

Subscribe [3]
  • #1 / Dec 22, 2011 8:44am

    Royama Design

    34 posts

    When you hide a P&T pill or switch field in Publish Layouts, the value is still being published in the preview. I assume this occurs because these fields are never empty, but contain some default value (an integer, true/false, etc.).

    Does any one know a way around this? It looks like I am stuck with this issue if I want to include a pill or switch type field in a Master Field Group.

  • #2 / Dec 22, 2011 10:30am

    Boyink!

    5011 posts

    Sounds like a question better posed to the Pixel & Tonic support channel…but how much of an issue is it being seen in the Preview mode?

  • #3 / Dec 22, 2011 11:22am

    Royama Design

    34 posts

    I wasn’t sure if it was a P&T issue or perhaps related to the Publish Layouts functionality. Brandon gave a quick and easy reply once I posted over there: thread on P&T Forum.

    The short and sweet: a separate field group is required to remove the custom field data from the preview. Basically, the custom field can’t be associated with the channel.

  • #4 / Dec 23, 2011 11:26am

    Kyle Cotter

    730 posts

    Hey Sam,

    Glad Brandon was able to help you get things sorted out.

    If you have any more questions, feel free to post again.

    Thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases