Copied to clipboard

Flag this post as spam?

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


  • Richard Kingston 46 posts 69 karma points
    Jan 09, 2012 @ 21:48
    Richard Kingston
    0

    Access Member properties with Razor?

    Hi,

    I'm using a usercontrol in 4.7.1 to create new pieces of content in Umbraco with a property that contains the ID of the Member who is logged in. So, the Member can enter a few details on a website, press submit and a new piece of content is created.

    What I then want to do is the following:

    Submitted by <href="/[email protected]">@umbraco.library.GetMember(Model.author)</a>

    Unfortunately, the ".Text" value doesn't work giving the error:

    Error loading Razor Script MapDetails.cshtml
    'System.Xml.XPath.XPathNodeIterator' does not contain a definition for 'Text'

    Can anyone help?

    Thanks

    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