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

Request: add category possibility #86

Open
oresch opened this issue Jun 15, 2020 · 7 comments
Open

Request: add category possibility #86

oresch opened this issue Jun 15, 2020 · 7 comments

Comments

@oresch
Copy link

oresch commented Jun 15, 2020

It would be nice, if the category of an event would be included in the event object.
I know category is free text, but if you use our own mapping on your own infrastructure it's ok, I think.

The idea behind this request: if I add the cat to an event in my calendar (lightning, nextcloud, ...) I than can assign a nice icon to the item on MM. Currently only an icon to the whole calendar is working.
Currently I'm creating an event with the title

Dentist <span class="iconify" data-icon="noto:tooth" data-inline="false"></span> 

But this "disturbs" the normal calendar apps not being able to show this icon.

In the config part the user can than add a personal mapping category -> icon which the module than can use.

@katerasrael
Copy link

That would be very nice - i use the categories in lightning, especially for birthdays.

@klaernie
Copy link
Contributor

Hi, could you please post an example ICS that has an weekly recurring event with a category?

Else feel free to propose a PR.

@oresch
Copy link
Author

oresch commented Jun 24, 2020

Hi - here an example with two categories (in german).

BEGIN:VCALENDAR
PRODID:-//IDN nextcloud.com//Calendar app 2.0.3//EN
CALSCALE:GREGORIAN
VERSION:2.0
BEGIN:VEVENT
CREATED:20200624T071734Z
DTSTAMP:20200624T071817Z
LAST-MODIFIED:20200624T071817Z
SEQUENCE:2
DTSTART;VALUE=DATE:20200622
DTEND;VALUE=DATE:20200623
SUMMARY:Test-Termin
RRULE:FREQ=WEEKLY;BYDAY=MO
CATEGORIES:Urlaub,Nicht im Büro
END:VEVENT
END:VCALENDAR

@katerasrael
Copy link

katerasrael commented Jun 24, 2020

Here's another example:

BEGIN:VCALENDAR
CALSCALE:GREGORIAN
VERSION:2.0
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
BEGIN:VEVENT
CREATED:20200624T120301Z
LAST-MODIFIED:20200624T120615Z
DTSTAMP:20200624T120615Z
UID:67215596-6434-4159-aa8f-b515f967a0a8
SUMMARY:Birthday-Test
CATEGORIES:Geburtstag
DTSTART;VALUE=DATE:20200625
DTEND;VALUE=DATE:20200626
TRANSP:TRANSPARENT
RRULE:FREQ=YEARLY;BYMONTH=6
SEQUENCE:1
END:VEVENT
END:VCALENDAR

@klaernie
Copy link
Contributor

klaernie commented Jul 10, 2020

I am thinking about how to implement this. Right now it does seem like ical.js does support categories (from a really quick google search), but it doesn't arrive in CX2.

But there is one thing I found today that might help you, if your to-be-iconified events are selectable using title comparisons (like your Dentist example): you can specify a transform on the view, which then assigns an iconify icon to the single event.

I like the categories idea, but it might take a time to implement this. So if you like, feel free to propose a PR that get the categories loaded.

@oresch
Copy link
Author

oresch commented Jul 12, 2020

The transform thing sound really interesting. It's worth giving a try.
I could accept it as a workaround - but I think the categories idea shall be followed on.
Timeframe is your thing ;-)
For me it's not that urgend. Maybe I find time and sources about ical.js and CX2 to prepare something for a PR.

@Rebel154
Copy link

Rebel154 commented Dec 3, 2020

I too would like to see the category of an event included in the event object. I would use it to set the CX2 Description field. For instance, I show my football team's fixture list which is added to Outlook as an ical subscription. When my team is to be broadcast on TV, I add the relevant TV station to the comment (description) field in Outlook. Unfortunately, each time the subscription is updated, it overwrites my entry in the description field. If I could set a category and then use that to set the CX2 description field, it would save me updating each entry in the fixture list (in Outlook) every time the calendar is updated which can be as much as twice a week.
Thank you.

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

No branches or pull requests

4 participants