Copied to clipboard

Flag this post as spam?

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


  • Kurniawan Kurniawan 202 posts 225 karma points
    Dec 03, 2010 @ 01:33
    Kurniawan Kurniawan
    0

    Node Factory for unpublish node

    Hi all,

     

    I heard that node factory will read data from umbraco.config similar to xslt
    is this correct?

     

    if that that the case it means that all publish node can be retreived using node factory because umbraco.config only consist publish data.

     

    how do I retrieve unpublish node data because I need this in my custom edit page in Umbraco CMS.

     

    Do I need to manually perform select query to DB?

     

    Any reference to this?

     

     

    thanks for your help.

  • Rich Green 2246 posts 4008 karma points
    Dec 03, 2010 @ 09:38
    Rich Green
    1

    Hi,

    Put simply you use the Node Factory to access any published data, and the Document API to access unpublished data (which must come from the database)

    Further explanation here http://our.umbraco.org/wiki/reference/api-cheatsheet/difference-between-a-node-and-a-document and http://www.netaddicts.be/articles/document-api-vs-nodefactory.aspx

    Regards

    Rich

  • 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