umbraco - Setting custom property as href in a Partial View -
i've created document type called "article" has textstring property called "link" holds url external site. i'm trying create simple partialview include hyperlink url. if display url in partial view, displays properly. if try reference inside href attribute, renders "umbraco.core.dynamics.propertyresult". code below. obvious thing missing shame me once point out?
@foreach (var item in selection) { <dt> <a target="_blank" href='@item.getproperty("link")'>@item.name</a> </dt> <dd>@item.getproperty("linkdescription") <br /> @item.getproperty("link") </dd> }
posting sufficient me find obvious answer may humiliate myself. instead of getproperty, switched getpropertyvalue.
Comments
Post a Comment