wdelfuego / nova-calendar

A powerful event calendar Tool for Laravel's Nova 4
Other
91 stars 26 forks source link

It is possible to change the URL by clicking the event to access a custom tool instead of using the resource? #73

Closed HAL0594 closed 11 months ago

HAL0594 commented 11 months ago

I'm using 2.x and I have a calenda

By default, clicking takes you to the resource event view

/nova/resource/resourceName/{id}

which I am only using to get the calendar events but it should take me to the tool view

/nova/mytool/mytoolview/{param1}/{param2}

Is there a way to do it or to obtain the events directly from the model, omitting the resource and the click?

wdelfuego commented 11 months ago

Take a look at the url and withUrl methods mentioned at https://wdelfuego.github.io/nova-calendar/customizing-events.html#chainable-customization-methods

wdelfuego commented 11 months ago

And, more importantly;

https://wdelfuego.github.io/nova-calendar/customizing-events.html#changing-what-happens-when-an-event-is-clicked

HAL0594 commented 11 months ago

thanks it helped me!