How to configure nested content type with table view and "Add" button in Plone 5

Hi all,

I'm developing a custom content structure in Plone 5 and need some guidance on implementing a nested content model. I have a parent container type (Clients) that holds individual items of type Client. Each Client, in turn, should allow adding multiple Order items. My goal is to show these Order entries in a table layout on the Client view (and ideally in edit mode too), with an Add Order button.

Here’s what I’ve implemented so far:

  • Defined interfaces: IClients, IClient.
  • Set up Dexterity types:
  types/Clients.xml and types/Client.xml declare the content types and restrict Client to only be addable inside Client (allowed_content_types).
  The Client type is configured with a custom view that extends ListingView to display Order entries in a table.
  • Registered the types in types.xml (included , ).
  • Defined workflows in workflows.xml, assigning appropriate workflows to both Clients and Client.

What I’m looking for: : How to properly configure the Add Order button in context_actions so that it appears in the Client view, allowing users to add Order items directly from there.

Thanks in advance!