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?
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?
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?
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:
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
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
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
is working on a reply...