Copied to clipboard

Flag this post as spam?

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


  • Craig 2 posts 52 karma points
    Nov 20, 2014 @ 17:09
    Craig
    0

    List page DocType with child DocTypes without inherited properties

    Hi all,

    I'm trying to create a News page on my site which has it's own properties (title, Intro text, etc.) but also displays a bunch of news stories which will all have the same template.

    I've tried to do this by creating:

    • A 'News' DocType with properties for the title and intro text.
    • A 'Story' DocType with properties for the story (Headline, strapline, content, image, etc).

    Here's an image representation of what I'm trying to do:

    The blue area is the Master Template.
    The green area is the page content (properties 'News' DocType).
    The red area is the story content (properties of the 'Story' DocType).

    Now my problem is; when I create a 'Story' DocType as a child under the 'News' type I get inherited properties from 'News'. How can I define this relationship without the inheritance?

    Thanks,
    Craig

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 20, 2014 @ 17:22
    Jan Skovgaard
    0

    Hi Craig and welcome to our :)

    How have you defined the docoument types? Are they defined on the sam level or does the Story document type inherit from the News document type?

    Could you perhaps provide some screendumps from the settings section where you have defined your document types? And perhaps also a screendump showing what your Story document type looks like when you create it in the content section?

    /Jan

  • Craig 2 posts 52 karma points
    Nov 20, 2014 @ 18:39
    Craig
    100

    Hi Jan,

    Thanks for the reply. I was creating the Story type under the News List DocType. I realise now that that was where I was going wrong. By creating it along side but not giving it a template gave me the desired effect.

    I have to say though that requiring the list of DocTypes to be flat (unless you want to inherit properties) does make for a slightly confusing list. Perhaps Umbraco could use folders if only for visual organisation?

    Cheers,

    Craig

Please Sign in or register to post replies

Write your reply to:

Draft