I was trying to configure a view based on a checkbox field within a content type. So basically, when the field is checked it should show a different view mode and if unchecked a different one.

I have checked it a lot and found that the reaction is called before the contexts get initiated or loaded. Because of that in reaction execute the function in CVM, it always gets $this->contexts() array empty and fail down to apply the view mode.

Any help would be appreciated!

Comments

anuragsharmam created an issue.

JordiTR’s picture

I'm having the same trouble here. My impression is one of the main conditions to use that module would be to change view mode based on some value on a field... :-)

math-hew’s picture

Running into the exact same issue here.

Yorgg’s picture

Bump. Trying context_bool_field module
Edit: nor even context_bool_field