Skip to content

Custom Content Fields: add custom settings in the Content Field settings page #15522

Answered by douwinga
MarGraz asked this question in Q&A
Discussion options

You must be logged in to vote

You would need a settings driver for that. Which is different from the Field display driver. You will have a class that inherits from ContentPartFieldDefinitionDisplayDriver. Something like public class MyTextFieldSettingsDriver : ContentPartFieldDefinitionDisplayDriver<MyTextField> which is then added to your Startup.cs with something like services.AddScoped<IContentPartFieldDefinitionDisplayDriver, MyTextFieldSettingsDriver>();. You will have to add your view and such too, but this should get you in the right direction and give you something to search for.

The ContentFieldDisplayDriver is for handling the displaying on the front end and editing of the content item itself, not the editin…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
2 replies
@MarGraz
Comment options

@douwinga
Comment options

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