Skip to content

Instantly share code, notes, and snippets.

@bjarnef
Created July 4, 2016 19:17
Show Gist options
  • Select an option

  • Save bjarnef/f684f0415ef9b08474662c018d758c0f to your computer and use it in GitHub Desktop.

Select an option

Save bjarnef/f684f0415ef9b08474662c018d758c0f to your computer and use it in GitHub Desktop.

Revisions

  1. bjarnef created this gist Jul 4, 2016.
    10 changes: 10 additions & 0 deletions MemberRelationLabel.cshtml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    @using Umbraco.Web.PublishedCache;
    @inherits Umbraco.Web.Macros.PartialViewMacroPage
    @{
    var member = (MemberPublishedContent)Umbraco.TypedMember(Model.MacroParameters["key"]);
    if (member != null)
    {
    var guid = member.GetKey();
    <i class="icon icon-user"></i> <a href="/umbraco/#/member/member/edit/@guid" title="Rediger medlem">@member.Name</a>
    }
    }