nova-cards icon indicating copy to clipboard operation
nova-cards copied to clipboard

Can we show the cards on pages other than dashboard

Open beshoo opened this issue 2 years ago • 2 comments

I typically use https://novapackages.com/packages/formfeed-uk/nova-resource-cards , but I'm unsure if it's compatible with your package. Could you kindly confirm?

beshoo avatar Jul 11 '23 09:07 beshoo

Hi, @beshoo

I haven't tested it, but it looks like this package is compatible

stepanenko3 avatar Jul 11 '23 21:07 stepanenko3

Actually i dont know how to use it since you are in your classes Eg: use Stepanenko3\NovaCards\Cards\GreetingCard

Extended the card, and the Package ask to

Update your Card to extend ResourceCard instead of Card:

// MyResourceCard.php

...

use Formfeed\ResourceCards\ResourceCard;

class MyResourceCard extends ResourceCard {

    ...

}
Then simply include it like a normal card within your resource:
// MyNovaResource.php

use App\MyResourceCard;

...

class MyNovaResource extends Resource {

...

    public function cards(NovaRequest $request) {
        return [
            MyResourceCard::make($request)
        ];
    }

...

}

Kindly can you please give me some ideas how to implement your package with this one.

On Wed, Jul 12, 2023, 12:03 AM Artem Stepanenko @.***> wrote:

Hi, @beshoo https://github.com/beshoo

I haven't tested it, but it looks like this package is compatible

— Reply to this email directly, view it on GitHub https://github.com/stepanenko3/nova-cards/issues/9#issuecomment-1631506066, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDLT27PGRPZVYLY5UZMHMTXPW5S7ANCNFSM6AAAAAA2FWNTAU . You are receiving this because you were mentioned.Message ID: @.***>

beshoo avatar Jul 11 '23 21:07 beshoo