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

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -