Can I hide display name of field or part,please #15021
-
Can I hide display name of field or part ,please? I hope I can hide display name of field or part by two method: 1 During to add field or part in content type definition, it maybe to add a configuration item "allow hide display name"; Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Where do you want to hide the display name from? If you want to hide the display name in the editor template, how will the user know what does the field represent? If you want to hide the display name from showing up in a display template, you may do that in the display template |
Beta Was this translation helpful? Give feedback.
-
You can change the appearance of a content type using placement in the admin panel. If there is an area you want to hide, you can do it using the same method. https://docs.orchardcore.net/en/main/docs/reference/core/Placement/ |
Beta Was this translation helpful? Give feedback.
-
@emrahtokalak not in this case. He want to hide partial of a content. There is an item in my list "at some point I'll get to it" which allows us to control how to render the display name and the format of the value |
Beta Was this translation helpful? Give feedback.
@effapp create a template in your custom theme that looks like this
You can name it the same to override all media fields. You'll just remove the content on line 12
OrchardCore/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaField.cshtml
Line 4 in 16ade0f