Description
Trying to wrap my head around how to create an extension to a Fluidity view for managing a many-to-many relationship table when editing one of the source tables.
Basically, I'll have a few custom tables created with PetaPoco.
- Products
- Catalogues
- Catalogues_Products
Catalogues_Products needs to maintain a many-to-many relationship between Products and Catalogues, and would need its own advanced property-editor to manage the relationships - I guess the classic drag from box-1 to box-2 type of thing - which I suspect would perhaps need to read/update using a UmbracoAuthorizedJsonController.
Ideally, I'd like to offer the opportunity to edit the relationship when creating/updating either a Product or Catalogue using Fludity - i.e. if creating/updating a Product, allow the user to update the Catalogues it's related to - and similarly if creating/updating a Catalogue allow updating of the Products it's related to.
However, I'm not sure how to deal with it using fluidity - i.e. how to add the functionality of the custom property editor to the Fluidity view without requiring that Fluidity manage it - intercepting the read/update cycle to handle the custom property editor's needs - perhaps Fluidity.SavingEntity is one option for updating, but not sure about the read/load cycle?
Or perhaps I'm just too confused and can't see the forest for the trees.
Activity