Can I default a Resource relationship to show an edit form instead of table view?

I theorise that I would like to do this in two scenarios: 1. On a one-to-one relationship 2. On a one-to-many, however I will specify a single record to display via a URL parameter.
3 Replies
Dennis Koch
Dennis Koch2w ago
From where? The table? You can override the ->recordAction() Not sure how that's related to relationships? Ah you mean, you want to skip the table entirely? It's a single record? Then it's not really a resource anymore. Just a page.
keiron
keironOP2w ago
Yes, skip the table entirely. Yes it's a single record. Ok, then I need to go back to trying to work out how to get a specific record into a page from the attributes in the URL.
Dennis Koch
Dennis Koch2w ago
I saw your other page. If you extend ViewRecord you need to fight all the defaults that are expected from a resource. Better just extend Page and start from a blank

Did you find this page helpful?