Skip to content
Discussion options

You must be logged in to vote

Using DisplayDrivers produces views, either liquid or razor. The models they produce are generally a ViewModel.

They do not modify the source content item json.

So you can't use display drivers to produce json.

To create modified JSON output, you could use a decoupled approach, cloning the json of the content item, and modifying it, as you wish

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dannoh
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dannoh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants