In Habitat, I defined two templates:
_footer, and each of them has the same field name but different ID values,for example IDA and IDB.
The start root item inherits both these templates.
So when I use
item.Field(IDB), it always returns the same value. In my case, the field in the
When I look deeply in code, the implementation is:
var field = item.Fields[fieldId]; FieldRenderer.Render(item, field.Name)
That means it will get value by name instead of by ID.
Is it possible to get value by ID?