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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -