How do display only a field on a content item #16316
-
I would like to display only a field on a content item. So if I'm given a content item, part name, and field name; I want to display the field of that content item and only that field. The closest I've gotten is calling BuildDisplayAsync on the field display driver, but it never reaches the view. Additional DetailsDescription For the case view, there is a header which contains some fields about that case. These fields are determined by a template, using the Templates module. So the fields won't be known until a specific content item is loaded and displayed. I am able to get these fields with no issues. Also on the page is a list of related reports. And when these reports are displayed on the page, an edit modal is also displayed with it. In this edit modal, I want to display the fields that are displayed in the header of the case. Information Available |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can also use Placement to hide everything apart from the shape of that one field. Also see Shape Tracing for help. |
Beta Was this translation helpful? Give feedback.
-
I worked with @MEllis-Bethany on this outside of discussions. While placements could have worked, it would have been a maintenance issue in this particular scenario. In the end it basically came down to that he did not realize he already had the specific field shape and just needed to display it in the view via |
Beta Was this translation helpful? Give feedback.
I worked with @MEllis-Bethany on this outside of discussions. While placements could have worked, it would have been a maintenance issue in this particular scenario. In the end it basically came down to that he did not realize he already had the specific field shape and just needed to display it in the view via
@DisplayAsync(myFieldShape)
in the view.