Copied to clipboard

Flag this post as spam?

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


  • Paul D. 12 posts 32 karma points
    Jan 29, 2010 @ 13:23
    Paul D.
    0

    how load page(node) from code befind of webcontrol(macro)?

    i try get a content from page(node) by id

     

    how get it? i need a bodyText!

     

    may be, i need somethink like this - umbraco.library.GetXmlNodeById, but not xml, i want node class?

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jan 29, 2010 @ 13:31
    Thomas Höhler
    0

    try this:

    string bodyText = new umbraco.presentation.nodeFactory.Node(YOURNODEID).GetProperty("bodyText").Value

    See the documentation: http://our.umbraco.org/wiki/reference/api-cheatsheet/working-with-the-nodefactory

    hth, Thomas

     

Please Sign in or register to post replies

Write your reply to:

Draft