sitecore - Standard Values value correct in CE but null in Code -
if set value of field on standard values of base template standard value shows in field in content editor(and in rocks), when reference field id in code
html.sitecore().field(id, item); //ed. have helper method error checking called getfield(), mistake. add more clarity: works correctly if go ce , add character end of value , press save. (overriding standard values)
the returned value null.
this both new items created after standard values change, , current items.
try: .field() instead of .getfield()
like in html.sitecore().field(id, item);
Comments
Post a Comment