Removing elements from event details page for just one group

Our event details page has social sharing icons in the sidebar and an 'Add to my calendar" button below the event description for all events. Our Admissions office has asked if those can be removed for events on their calendar only, as they don’t want prospective families using them. Is there a way to do that for just one group’s events?

Hey Jen,

Great question – you sure can! The event details component can support the variable {{ obj.group_fullname }} for the name of the current event’s group.

So, mimicking the JS-style logic from elsewhere in the component, you can do something like

{[ if (obj.group_fullname != "Admissions") { ]}
<!-- put things here you don't want on Admissions events -->
{[ } ]}

You’ll want to test that on dev first, but I think that should do the trick. Hope this helps!

thanks, Karl - I’ll pass that along to our web team to give it a try!