Copied to clipboard

Flag this post as spam?

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


  • Martin Barker 9 posts 30 karma points
    Jan 14, 2011 @ 12:58
    Martin Barker
    0

    NOOB:: Create Content page not showing my Document Type

    ok as the title says im a noob to Umbraco,
    how ever i have experiance in C# ASPX and using Master files

    Now this seems like it should be a simple thing but i just cant get it to work.
    When i create a Document Type to use my New Templates (umbraco generated from creating) i can control the Document Type but when i go to the content system and try to create a new content page it wont give me my Document Type that i just created 

    Am i missing a step out?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 14, 2011 @ 14:14
    Dirk De Grave
    0

    You need to set what data is allowed to be created under each of the content nodes. For example, let's assume you've got two doc types 'News Folder' and 'News Item' and only want 'News Item's appear inside a 'News Folder', you'd configure the 'News Folder' doc type to only allow 'News Item' items (tab 'Structure' on your document type)

    Above rule doesn't apply to the 'Content' node in the content section. So, try to create a new document directly under the 'Content' node and you'll find your doc type in the dropdown.

    Bottom line, depending on your site structure, choose one or more document types under which you may create your new document type.

     

    Don't hesitate to ask more questions if still unclear.

     

    Cheers,

    /Dirk

     

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Jan 14, 2011 @ 14:16
    Matt Brailsford
    0

    Hey Martin,

    Have you told your doc type that it's allowed to use your template (master page)?

    Settings > Document Types > [Your Doc Type] > Allowed templates

    Matt

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Jan 14, 2011 @ 14:19
    Matt Brailsford
    0

    Ooops sorry, mis read the question. As dirk said, you need to allow your doc type to be created beneath the parent doc type.

    Select your parent doc type and under the structure tab, select which doc types can be created beneath it.

    Matt

  • Martin Barker 9 posts 30 karma points
    Jan 14, 2011 @ 14:55
    Martin Barker
    0

    I'm not sure i follow, a bit more detail

    I want a new master template in a way i want to create a micro-site so i have /micro-site and that have a different template from the rest of the site and you lost me with content type as parent sorry im taking over the site from another company so im having a little problem understanding it.

    I have

    Templates
    Health Check Micro
    Health Conten 
    Home Page

     

    Document Types
    Health Check
    Health Check Content Page
    Health Check Home Page

     

    now Content Page and Home page are set under Health Check so how do i set it up upder the doctype so it shows in the list? 

    I dont mind deleting any thing no code work is saved in Umbraco yet

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 14, 2011 @ 15:00
    Dirk De Grave
    0

    Hard to understand your template/doc type structure from last post and would be great to share your content tree as well (maybe a pic or at least an outline including the doc type for each of the content), as it's quite difficult to give advice based on your last post.

     

    Cheers,

     

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Jan 14, 2011 @ 15:02
    Matt Brailsford
    0

    Ok, so you you need to find out the Doc Type of the parent content page you are trying to create the new content page beneath (you can gather this from the properties tab when you click to edit the page).

    Once you know that, you need to go to

    Settings > Document Types > [The parent content page doc type] > Structure

    And check the relevant "Allowed child nodetypes".

    This basically tells umbraco, that bellow a page which uses that doc type, your allow to create child pages, which use the selected doc types.

    Hope this is a little clearer.

    Matt

  • Martin Barker 9 posts 30 karma points
    Jan 14, 2011 @ 15:19
    Martin Barker
    0

    Thast the 2 layouts you asked for

    And there is no Parent Template im not trying to add a content page i want to add a whole new template that does not use another a clean master template if you will

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Jan 14, 2011 @ 15:32
    Matt Brailsford
    0

    Hi Martin.

    I think I understand what you mean now.

    Are you saying, when you create a doc type, it creates a template for you, and thus creates an actual master page file on the file system? But, when you create the master page file on the file system yourself, it's not available as a template within your doc type?

    If so, you need to understand the flow of umbraco a little more. Basically it goes like this.

    You have a doc type, which can use templates, which are linked to master pages.

    When you created your doc type, it automatically created the template bit for you, aswell as the master page. When you just create your own master page though, you still need to create a template within umbraco (Settings > Templates). To create a template, just right click in templates, and choose Create. This will automatically generate a master page for you (be carefull, if one exists it will get overwritten so remove your's for now, create the template then replace it) Whatever you set as the alias, will be the name of your master page with ".master" on the end.

    Once you have a template defined, you should then be able to choose it as an allowed template for your doc type (as per my very first post).

    Matt

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 14, 2011 @ 15:35
    Dirk De Grave
    0

    Hmm, you just want new template, not based on any other template already existing. Just create one from 'Templates' right click. Maybe you're confused about the fact there's already a default content placeholder in it? Nothing to worry about, just add your new content in the default content placeholder.

     

    Or, did I still misunderstand your question?

     

    Cheers,

    /Dirk

  • Martin Barker 9 posts 30 karma points
    Jan 14, 2011 @ 15:42
    Martin Barker
    0

    Thank you so much got it now. and understand what you meant earlyer 

  • godwin 6 posts 50 karma points
    Jan 11, 2013 @ 10:41
    godwin
    0

    should we first create document type or template???

  • Matt Barlow | jacker.io 164 posts 740 karma points c-trib
    Jan 11, 2013 @ 11:12
    Matt Barlow | jacker.io
    0

    Hi Godwin,

    Welcome to our! Glad you've chosen to use Umbraco, it's a great CMS.

    I'd recommend you watch all of the following videos for a great introduction to Umbraco:

    http://umbraco.com/documentation/videos/for-site-builders/foundation/document-types

    You can create either doc type or templates in any order, it's personal preference.

    M

  • godwin 6 posts 50 karma points
    Jan 11, 2013 @ 11:30
    godwin
    0

    i have created a template and in the same name i have created a doc type and made the selection in the info as well as the structure tab of the doc type but then the created template is not showing up in the content area template dropdown. can u guide me??

     

  • Matt Barlow | jacker.io 164 posts 740 karma points c-trib
    Jan 13, 2013 @ 17:50
    Matt Barlow | jacker.io
    0

    Can you recheck that the doc type has the template set as an allowed template. Settings > Document types > YourType , info tab then check the allowd template.

    Also check that that node in the content area you want to assign the template to is of the correct doc type.

     

Please Sign in or register to post replies

Write your reply to:

Draft