Copied to clipboard

Flag this post as spam?

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


  • daxu 22 posts 28 karma points
    Feb 24, 2009 @ 00:51
    daxu
    0

    what is content.Instance.XmlContent?

    Hi,

    Sorry for this newbie question.

    I was trying to following this thread: http://forum.umbraco.org/yafpostst8205Getting-Ultimate-Picker-to-return-Content-Nodes-instead-of-IDs.aspx

    to write an extension method.

    But I am new to xslt, when I put the code to compile, visual studio don't know what is content.Instance.XmlContent.

    Basically what I want to achieve is that on people page, I have an ultimate picker to list all the projects, so that editor can select with project indiviual is on.

    On the project page, I want to list all the people in the project as well. So on the project template, I need to find all the people that have that project ticked in the ultimate picker.

    I am thinking of following the example I found, but got stuck there. Can someone please help?

    Many Thanks

    Jerry

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Feb 24, 2009 @ 14:58
    Dan Diplo
    1

    content.Instance.XmlContent is a method within the umbraco API to return the XML for the current node. You'll need to add a reference to the umbraco DLL and add a "using umbraco;" statement to your code if you wish to reference it from Visual Studio.

    See http://www.umbraco.org/apiDocs/html/PropertiesTumbraco_content.htm

  • Robert Oswald 72 posts 24 karma points
    Jul 08, 2009 @ 07:22
    Robert Oswald
    0

    actually it returns the full xml for all nodes

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 08, 2009 @ 08:53
    Dirk De Grave
    0

    Hi,

     

    Just a minor addition to Robert's post:"actually it returns the full xml for all 'published' nodes"</span>

     Cheers,</span>

Please Sign in or register to post replies

Write your reply to:

Draft