sharp
sharp copied to clipboard
SharpShowEntityTextField
In my case, I need to link two resources. The following code represents the owner name of the current showing server.
// Before
SharpShowTextField::make('user:name')
->setLabel('Owner')
// After - represent link to user show entity
SharpShowEntityTextField::make('user:name', 'user')
->setLabel('Owner')
I think that is a good feature, and I go work on it, probably this weekend.
To be simple : Is a new SharpShowField to create a link to entity relation.
What would be the result? a label (user:name
) with a href link to the user show page / form? How do you pass the user's id? Anyway this could be something useful, I agree, but I need a more detailed example (with the full class) to figure this out. And be sure to look at this page first: https://sharp.code16.fr/docs/guide/link-to.html#create-links-to-an-entity
I'm closing this because it's inactive since a long time.