Copied to clipboard

Flag this post as spam?

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


  • Matt 10 posts 32 karma points
    Oct 13, 2010 @ 20:37
    Matt
    0

    How do I change the isDoc attribute of a node?

    Self explanatory really. How can I change the isDoc of any content I create? Or is this controlled by Umbraco?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Oct 13, 2010 @ 20:55
    Dirk De Grave
    0

    Yup, it's umbraco controlled, and don't see why you'd change that? Any reason for doing so? 

    isDoc attribute is just there to identify document xml nodes (general umbraco properties are defined as attributes on a document xml node) rather than custom properties nodes (properties you define on a document type) which are stored as child xml nodes of a document xml node

     

    Hope this helps.

    Regards,

    /Dirk

  • Matt 10 posts 32 karma points
    Oct 13, 2010 @ 22:56
    Matt
    0

    It makes sense why it's controlled by Umbraco, but I just have some document types that really don't need to have their own page. Its fine since I can just test the node type in XSLT and filter through the nodes I need. I just thought that if I could maybe control the IsDoc attribute then I could make things easier.

  • Happyfanaticsalsero 59 posts 81 karma points
    Oct 14, 2010 @ 12:07
    Happyfanaticsalsero
    0

    I agree. Some child nodes or child nodes of a certain document type should not be posted as a page on the website.

    Vote 1+ for having a property to set this either on the content or preferably even on the document type.

  • Michael Scott 5 posts 25 karma points
    Nov 15, 2010 @ 23:47
    Michael Scott
    0

    One reason for trying to keep something from being a document is:

    XSLTsearch makes use of the IsDoc property to determine which nodes to use by default.

    Of course I can edit the macro to exclude doc types, but then upgrades of XSLTsearch will break that.

    I would vote for a setting of "Not a Document", and then have that override the Umbraco controlled IsDoc flag where checks are made.  Or something along those lines.

  • Essy 74 posts 96 karma points
    Dec 17, 2010 @ 14:58
    Essy
    0

    I would add another vote for this feature ... along with the ability to hide the property from some user types (e.g. so that only developers could set/unset the flag).

  • Matt Todd 9 posts 29 karma points
    Jan 25, 2011 @ 22:48
    Matt Todd
    0

    Yes that is what I was after

     

    what did node represent in the old schema as opposed to IsDoc in the new schema?

    I'm just trying to figure out what value i need to get this thing working

Please Sign in or register to post replies

Write your reply to:

Draft