c# - Adding classes to item.GetPropertyValue() auto-generated p elements (Umbraco) -
it seems whenever call getpropertyvalue() function, p elements automatically generated, meaning can't wrap call in own implemented p element. need add few classes element, unable to, auto generated element created @ runtime.
this call:
@(item.getpropertyvalue("desscription"))
when wrap in p element class this:
<p class="static-heigth">@(item.getpropertyvalue("desscription"))</p>
the browser adds empty p element, p element containing span property string.
how add classes , data-types p elements containing property values?
are sure it's "the browser" adds elements , not, say, rich text editor in umbraco?
if debug way through, you'll able see what's coming umbraco , what's not. or, if property in fact getting value rich text editor has "html" or "<>" button in backoffice, can check html rte generates.
Comments
Post a Comment