Copied to clipboard

Flag this post as spam?

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


  • seanrock 262 posts 483 karma points
    Aug 23, 2009 @ 16:52
    seanrock
    0

    Creating content directly under 'Content' node allows user to use any document type

    Hi

    i don't how to prevent this but, when the user creates new content and selects the top level 'Content' node, the 'choose document type' dropdown presents all the defined document types. for example i have a document type 'faqitem' and faqitem is an allowed child type of only the faq document type because i it needs to inherit properties of its parent. Anyone know how i can prevent this?

    thanks
    Sean

  • Chris Koiak 700 posts 2626 karma points
    Aug 23, 2009 @ 17:21
    Chris Koiak
    0

    Hi Sean,

    I don't know of anyway to prevent this. It's best practise to create a parent node and put all you pages under that;

    Content

    - Website

    --Home

    -- News

    Your 'Website' doctype would then restrict on what types of children it can have.

    This approach also makes navigational xslt easier to write.

    Chris

  • seanrock 262 posts 483 karma points
    Aug 23, 2009 @ 19:09
    seanrock
    0

    Hi Chris

    Thanks for your reply. I wanted to do that however i need a way for my client to manage the navigation himself because the logical navigation of the site doesn't follow the physical structure of the content (which is common in the majority of website).

    It just seems that this, i.e. restricting document types from being on the top level, was 'missed'.

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Aug 23, 2009 @ 19:19
    Nik Wahlberg
    0

    Hi Chris, you should be able to control this by modifying the following setting in the web.config:

    <add key="umbracoHideTopLevelNodeFromPath" value="true" />

    Basically, this tells Umbraco to go use the top level as the "home page". I think that would then allow you to restrict your user to the site top level node and have your navigation generate correctly.

    Hope that helps.

    -- Nik

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Aug 23, 2009 @ 19:19
    Nik Wahlberg
    0

    Sorry, meant to address this to Sean.

  • seanrock 262 posts 483 karma points
    Aug 23, 2009 @ 19:25
    seanrock
    0

    Thanks Nik i'll give that try.

  • seanrock 262 posts 483 karma points
    Aug 23, 2009 @ 19:28
    seanrock
    0

    its set to true, i've changed it to false - has no apparent effect. :(

  • seanrock 262 posts 483 karma points
    Aug 23, 2009 @ 19:33
    seanrock
    0

    I stand corrected. Nik i think its doing something a bit more than that. I'm using an asp.net theme with this site and setting that value to false causes the theme to not display.

  • Chris Koiak 700 posts 2626 karma points
    Aug 23, 2009 @ 20:03
    Chris Koiak
    0

    Hi Sean,

    That may be an issue with the Theme's CSS path. Check the html head section of your site, you may find the references to the css files are returning 404 errors.

    Chris

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Aug 23, 2009 @ 20:45
    Nik Wahlberg
    0

    Yes, toggeling this to false will change the meaning of your your relative paths. So, you may want to try to use an absolute path to your assets "/" without domain. 

    Hopefully this helps to some extent.

    -- Nik

  • 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