Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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.
is working on a reply...
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.
Continue discussion
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
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.
is working on a reply...
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.