Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External calendar support #46

Open
geransmith opened this issue Jul 29, 2016 · 10 comments
Open

External calendar support #46

geransmith opened this issue Jul 29, 2016 · 10 comments

Comments

@geransmith
Copy link

It would be great for admins to be able to add external calendars to the main yoursite/calendar view. I suspect just iCal support would be enough for most cases. When clicking into an imported event, it could either reference a webpage or display HTML content. You may need to an option to strip HTML out for security reasons though?

If you wanted to go crazy, you could build something that allows mapping incoming data from a file or other source. Something like reading from a json file periodically and mapping that information to the iCal standard. That might be way beyond a normal persons use case though.

My personal use case is to get this calendar displayed in my forums calendar.

@pitaj
Copy link
Owner

pitaj commented Jul 29, 2016

My personal use case is to get this calendar displayed in my forums calendar.

Is there a JSON or iCal endpoint for this calendar?

@geransmith
Copy link
Author

Is there a JSON or iCal endpoint for this calendar?

Not yet. I am seeing if that is something they can do. I mentioned my specific goal to add some color to it, but I do think enabling iCal feeds will be a helpful feature going forward. I will post a link if they can get a JSON or iCal endpoint for OpenCritic.

@geransmith
Copy link
Author

@pitaj

The OpenCritic developer team messaged me back. Is there a specific iCalendar data structure you have in mind?

@pitaj
Copy link
Owner

pitaj commented Jul 29, 2016

Either follow the iCal or jCal spec. jCal would be better for me. They are
interchangeable with a parser but jCal is JSON-based.

On Jul 29, 2016 16:39, "Geran" [email protected] wrote:

@pitaj https://github.com/pitaj

The OpenCritic developer team messaged me back. Is there a specific
iCalendar data structure you have in mind?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#46 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAxDdSnzAhXqGzu9QwZyPLCpEJdU5vMpks5qaoEzgaJpZM4JYkfx
.

@pitaj pitaj added this to the 1.0.0 milestone Aug 2, 2016
@pitaj pitaj changed the title add external calendar support External calendar support Aug 2, 2016
@pitaj pitaj modified the milestones: 1.0.0, 1.1.0 Aug 3, 2016
@geransmith
Copy link
Author

Example ical for the site I am interested: http://c.opencritic.com/calendar/OpenCritic.ics

@pitaj pitaj modified the milestones: 1.4.0, 1.1.0 May 21, 2017
@geransmith
Copy link
Author

geransmith commented Jul 1, 2017 via email

@Fank
Copy link
Contributor

Fank commented Jul 1, 2017

I'm currently working on something like that because some of my member request such feature, this is a stupid hardcoded working draft Fank@19b0d1a .

Blue are the "imported":
image
image

I have some question about implementing the import part.

  1. Where can ics be entered? (only in ACP?)
  2. how should the ical be handled? (Download via job (every 2 hours or with custom interval?) and saved local?)
  3. Maybe a url template or something like that so the user have a "Go to Post" (i this example external link) for the event?
  4. Maybe a custom color per ical? or a "imported ical" one, so people can easily determine this is an external one.

This should be the first version and very simple, so it can be expanded later.

@Fank
Copy link
Contributor

Fank commented Jul 1, 2017

Ah and i forgot one, there should be a permission system for the ical because we don't want to bloat the calender with lots of ical.
In example:

  • the group "anime" should see the ical for anime releases.
  • the group "games" should see the ical for game releases.
  • ...

@Fank
Copy link
Contributor

Fank commented Jul 15, 2017

@pitaj you may be able to help me, how do i build a list system in the admin ui.
Where can new icals be added (and the current list will show the new ical) and some existing icals be deleted. Thats one of my biggest issues i still have.

@pitaj
Copy link
Owner

pitaj commented Jul 15, 2017

If you can get everything else working, I can add the admin UI. Add express handlers for a couple of actions in controllers.js. For example, router.get('/api/admin/plugins/calendar/custom/add', ...), etc. Then you can test if your thing works, and I can add a UI, from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants