kaz Posted Wednesday at 09:09 AM Share Posted Wednesday at 09:09 AM I need a calendar, or perhaps better a list of calendar dates. A list of dates would be enough. In frontend it may look like this: Wednesday, 15.01.2025, 09:00 - 12:00 Information on this date above Wednesday, 22.01.2025, 10:00 - 13:00 h Wednesday, 29.01.2025, 09:00 - 12:00 a.m. … that continues for a quarter I have been thinking back and forth about how to implement it in the most convenient way for the client. ProFields, a calendar module, CSV import (ProFields), … I imagine the handling with ProFields Table is quite cumbersome, adding manually rows takes time (!?). How would you do it? The client must update the data each time it expires. It's always the same day of the week, except for some days and vacations. Link to comment Share on other sites More sharing options...
bernhard Posted Wednesday at 03:48 PM Share Posted Wednesday at 03:48 PM 6 hours ago, kaz said: The client must update the data each time it expires. Don't understand what you mean. 6 hours ago, kaz said: It's always the same day of the week, except for some days and vacations. Sounds like recurring dates? Have you seen RockCalendar? Link to comment Share on other sites More sharing options...
kaz Posted Thursday at 08:15 AM Author Share Posted Thursday at 08:15 AM 16 hours ago, bernhard said: Don't understand what you mean. You're right, I meant recurring dates on mostly the same days of the week. That's why I thought of automating it. CSV import would be great if there exists a source for CSV calendar data? I couldn't find one. RockCalendar looks great, I'll check it out. Would a simple list output in the frontend without a calendar be possible? Link to comment Share on other sites More sharing options...
bernhard Posted Thursday at 10:16 AM Share Posted Thursday at 10:16 AM 1 hour ago, kaz said: You're right, I meant recurring dates on mostly the same days of the week. That's why I thought of automating it. CSV import would be great if there exists a source for CSV calendar data? I couldn't find one. I still don't understand, but I probably don't have to. RockCalendar is great when you want to give the users the possibility to enter dates, especially enter recurring dates (you also need RockGrid for that), and have the option to modify single events (add exceptions, move single events out of the series, etc). Building a UI for this is not easy and a lot of work, so RockCalendar should save you a lot of work and hassle. On the frontend you can do whatever you want. All events that RockCalendar creates are just regular PW pages. Showing a list is even easier than showing a calendar, because all you need is a PW selector and a foreach. The only thing necessary for events is that they have a rockcalendar_date field, because only then RockCalendar can know when they take place and where to show them in a calendar on the backend (or how to sort them). I don't know how you "thought of automating it" or what you'd automate, so I'm not sure how RockCalendar would fit here or if at all. Link to comment Share on other sites More sharing options...
virtualgadjo Posted Thursday at 03:35 PM Share Posted Thursday at 03:35 PM hi, it's a bit hard for me to add something here as much as i'm sure @bernhard's module must be damn awesome... in the case you're describing, honestly i would simply write a little module using fullcalendar which would make so easy for your client to add dates (events) and for you to display those events as a calendar or a list (or both...) as you'll fill a personal db table, the data of which you could play with the way you want coming to the automate thing, not that simple as with what you're showing the time may change sometimes but a simple cron job could add a date every week for example, be it a pw lazy cron or a genuine apache cron job, knowing an event added to the calendar is easily editable from the calendar itself more, with fullcalendar you can easily define vacation periods, visible in the calendar and that your cron job could know when reading the db table(s) and then avoid when adding a new date/event, this is up to your php 🙂 fullcalendar has a recurent date plugin based on rrule js that comes with an dates to avoid option but still, according to what you need, it seems easier to simply give the ability to click on a date to add an event, reaaly fast for your client and far easier for you to configure and write the module 🙂 just the way i would do that 😉 have a nice day Link to comment Share on other sites More sharing options...
kaz Posted Friday at 07:39 AM Author Share Posted Friday at 07:39 AM On 12/18/2024 at 10:09 AM, kaz said: In frontend it may look like this: Wednesday, 15.01.2025, 09:00 - 12:00 Information on this date above Wednesday, 22.01.2025, 10:00 - 13:00 h Wednesday, 29.01.2025, 09:00 - 12:00 a.m. … that continues for a quarter This is how I imagine the frontend display, I probably didn't emphasize it clearly enough. A calendar would not be necessary for recurring weekly appointments; but an date field would be great for the editor. Bernhard's calendar is great, I would use it immediately for big tasks. I have now realized it with ProFields Table field, via CSV import with three columns, weekday, date + time. Why did I post this question here? There are many different approaches with date and calendar, some of which I have tried. In particular the “automation”, by which I mean combining a from-date with a to-date by selecting a day of the week. If you don't ask, you can't learn. Many thanks for the answers. 1 Link to comment Share on other sites More sharing options...
virtualgadjo Posted Friday at 07:57 AM Share Posted Friday at 07:57 AM hi, i use profield table a lot too with this import export module but you know, as soon as you're speaking of dates, that's why @bernhard and i have this same reflex: fullcalendar (i think his module is based on fullcalendar too but making your life a lot easier than when you deal with it by yourself 🙂 ) as you say, there are so many ways to deal with things in pw, repeaters could have been one too, and that's make pw so your cms and not just a wp like one in which you must do things the only way it's made for, i even sometimes use pw more like a framework with a incredible crud admin for site like pages and various content management, probably why it's a real cmf 🙂 have a nice day Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now