offset-dev / strapi-calendar

Visualize your Strapi content in month, week or daily view
36 stars 13 forks source link

Request: Color in calendar by custom field #18

Closed in-vbonilla closed 1 year ago

in-vbonilla commented 1 year ago

Hello,

I am working in a POC with Strapi and found your plugin very useful for our use case.

I think it could be a nice addition if the collection entity could set the color of the element shown in the calendar. In our case we could have several marketing campaigns at the same time and if they had different colors could be more clear for the marketing team to visualize when a campaign starts and ends.

I imagine this should be an override of the defaults so, if no color is set on the filed or entity, you get the one set on the plugin.

This is just a suggestion, good job by the way 👍

endrehegyi commented 1 year ago

Hello, I too would love this feature. To be able to change the colour of each event individually or from a pre-set dropdown list.

LuisRodriguezLD commented 1 year ago

Hey, sorry the delay.. I have #21 covering this

Would you mind giving it a go to see if it meets your use case? You can update your package.json to

"@offset-dev/strapi-calendar": "github:offset-dev/strapi-calendar#feature/color-from-entry" 
LuisRodriguezLD commented 1 year ago

Added in #21

in-vbonilla commented 1 year ago

Hi @LuisRodriguezLD I have tried it right now and works like a charm!

Thanks for adding this! 👏

LuisRodriguezLD commented 1 year ago

My pleasure, thanks for the idea!