Copied to clipboard

Flag this post as spam?

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


  • Nicolae Sebastian Laslo 12 posts 78 karma points
    Aug 26, 2009 @ 11:19
    Nicolae Sebastian Laslo
    0

    Document and Node objects

    Hi

     

    It my sounds like a stupid question but what is the difference between Document and Node objects. When is more appropiate to use one and when to use the other ?

     

    I have search thourgh this forum and Online Books but I didn't got a clear answer.

     

    Thanks

    Nicu

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Aug 26, 2009 @ 11:46
    Aaron Powell
    100

    Document - unpublished version of a page. All info is read directly for the database and it supports full CRUD operations

    Node - published version of a page. All info is read from the cache, either the XML on the file system (umbraco.config) or the XML in memory

     

    If you want info to show on your site use the Node API (or use LINQ to Umbraco in 4.1 ;) ), if you're working in the back-office use Document.

Please Sign in or register to post replies

Write your reply to:

Draft