Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I hide display name of field or part,please #15020

Closed
effapp opened this issue Jan 9, 2024 · 1 comment
Closed

Can I hide display name of field or part,please #15020

effapp opened this issue Jan 9, 2024 · 1 comment

Comments

@effapp
Copy link

effapp commented Jan 9, 2024

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";
2 During to custom content template, it maybe to add function parameter "allow hide display name" in @DisplayAsync(), like following:
@await DisplayAsync(Model.Content["ContentType-FieldName"], AllowHideDisplayName=true)

Thanks.

@MikeAlhayek
Copy link
Member

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

@OrchardCMS OrchardCMS locked and limited conversation to collaborators Jan 9, 2024
@MikeAlhayek MikeAlhayek converted this issue into discussion #15021 Jan 9, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants