Skip to content

How to prevent the Standard Title part from displaying when using a custom editor? #10250

Answered by jtkech
MikeAlhayek asked this question in Q&A
Discussion options

You must be logged in to vote

You need something like this (but for TitlePart in your case)

        services.AddContentPart<BagPart>()
            .ForEditor<BagPartDisplayDriver>(editor => string.IsNullOrWhiteSpace(editor))
            .ForEditor<TrackBagPartDisplayDriver>(editor => editor == Editors.Track)
            ;

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MikeAlhayek
Comment options

MikeAlhayek Sep 13, 2021
Collaborator Author

@ns8482e
Comment options

@MikeAlhayek
Comment options

MikeAlhayek Sep 14, 2021
Collaborator Author

Answer selected by MikeAlhayek
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