Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sam 184 posts 209 karma points
    Feb 11, 2011 @ 14:08
    Sam
    0

    Choosing which doctype fields are inherited

    Hi everyone,

    I have a master doctype with the following fields (plus the other meta stuff):

    pageTitle

    mainHeader

    subHeader

    Now, I have a child doctype (lets call it childDoctype1) which only requires:

    pageTitle

    subHeader

    and another called childDoctype2 which requires all three - no problems, all three are inherited! However, for childDoctype1, is there a way of 'unselecting' the mainHeader property (is it a property, or attribute - confused with the jargon still?!). Rather than making a new doctype just because one field should be absent.

    Otherwise, when creating a page using childDoctype1, there will be a field 'mainHeader' that is not required and will just sit there empty.

    As always, any help is very much appreciated! :)

    Sam.

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 11, 2011 @ 20:02
    Jan Skovgaard
    1

    Hi Sam

    There is no way to deselect an inhertied property as far as I know.

    If you know you need pageTitle and subHeader on all your document types, those are qualified to be set on a master document type. Then you should just add the mainHeader to the document type that needs it. That's how to do it :-)

    I hope it makes sense.

    Cheers

    /Jan

  • Sam 184 posts 209 karma points
    Feb 11, 2011 @ 20:29
    Sam
    0

    Thanks Jan,

    That makes sense :)

    Sam.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies