Posted: June 20, 2020 at 12:03 pm
Is it possible to include custom links to the [ESPRESSO_MY_EVENTS] for virtual events.
We only show this on our members only page. This would make it really easy for members to login and get links to virtual meetings.
Yes, it’s possible but the way you do it differs depending on where you want to include the details.
It looks like you want to include it on the date/time section, assuming making that section a link? If so that will require you load a couple of custom templates for the my events section and modify those.
Without loading custom templates the other option is to add another ‘action’ to the actions section with your own icon.
If you let me know which you prefer I can add more details on how you go about doing either.
Hey sorry for the delay, forgot to tic the box to notify me. I’m open to adding custom templates. Let’s go that route
Ok, so you want to wrap the date with the link you have set in custom fields?
Note that by loading your own custom templates, you take responsibility of keeping those templates updated as we update the default templates.
The first template you need is:
Grab that template and place a copy in the root directory of your theme (preferably a child theme).
The template in the root directory can now be edited as it will be used in place of the original. Around line 115 you’ll have:
Change that to:
That passes the current event to the template used to output the date. (You could pull this for each registration but this is more efficient)
Place that in your themes root directory again.
The EE_Event object has a
So for example:
Now just wrap line 16 with an a tag using your zoom URL as the href and your done.