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

New Event Types not showing with or without special characters. #36

Open
dwoods-encircle opened this issue May 1, 2024 · 2 comments
Open

Comments

@dwoods-encircle
Copy link

dwoods-encircle commented May 1, 2024

Thanks for another great plugin! This isn't a big issue, but could cause people to trip up.

I Added two new event types to the default list, one called "Event-Type (New)" and another "Event-Type (New 2)".

These are not shown on the calendar [ux_event_fullcalendar types="Event-Type (New),Event-Type (New2),Diversity Event"], even when explicitly added to the "types" shortcode attribute.

Removing the "types" attribute to show all events results in no events being shown.

Rather than added two new event types, I have renamed the Workshop and Conference types to "Event New" and "Event New2". These are now shown.

The special characters "-" and "()" seem to cause issues, but any new Event Types added to the default list do not appear.

Please let me know if I can help with any testing or additional info.

WP 6.5.2, Civi 5.69.4, PHP8.1.

Agileware Ref: WPCIVIUX-146

@agileware-fj
Copy link
Contributor

Thanks for the report.

Event types with non-alphanumeric characters are actually not supported – anything other than A-Z, a-z, 0-9 or a space will be stripped out when the event type is processed from the types attribute. It may be possible to remove this limitation, however would need some targeted testing.

With removing the "types" attribute ... It looks to me like this is actually a required attribute in general. I'm not sure if that's what you mean here, or whether it only came about with the 'special' characters.

Can you also please provide an example to illustrate what you mean by "any new Event Types added to the default list do not appear."

Thanks!

@dwoods-encircle
Copy link
Author

@agileware-fj thanks for clarifying.

So "any new Event Types added to the default list do not appear." should now read "any new Event Types [with a space in their value] added to the default list do not appear."

All our event types have two words with a space in them. This is what's been tripping us up.

Again, not a big issue we can work around quite easily.

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

No branches or pull requests

2 participants