Calendar Addon - How to set it as the default view instead of list? #1296
-
Hi, I want both list and calendar view, but I want the calendar view to be the default view. How can I do that? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
To set the Calendar view as the default view instead of the List view in Backpack's Calendar Operation addon, you can modify your CRUD controller. Here's how you can do it:
use \Backpack\CRUD\app\Http\Controllers\Operations\ListOperation;
use \Backpack\CalendarOperation\CalendarOperation;
CRUD::setOperationSetting('defaultView', 'calendar'); This will set the Calendar view as the default view when users access your CRUD. It's important to note that this functionality is not explicitly documented in the provided knowledge sources for the Calendar Operation addon. However, this approach is consistent with how Backpack typically handles setting default views for operations. If this solution doesn't work as expected, you might need to consult the Backpack community forum for more specific guidance or to confirm if this feature is supported in the current version of the Calendar Operation addon. ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: Fullcalendar |
Beta Was this translation helpful? Give feedback.
-
Did not work^ |
Beta Was this translation helpful? Give feedback.
-
Hey @NuktukDev Let's say your crud URL is "/meeting." All you need to do is change the URL to "/meeting/calendar." in your sidebar menu. |
Beta Was this translation helpful? Give feedback.
Hey @NuktukDev
Let's say your crud URL is "/meeting." All you need to do is change the URL to "/meeting/calendar." in your sidebar menu.