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

Make activity images to links. #15

Open
ghost opened this issue Jun 10, 2024 · 0 comments
Open

Make activity images to links. #15

ghost opened this issue Jun 10, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 10, 2024

Hi.

Thank you for this plugin. I was looking for a while for a plugin that allows to select images for different activities and sections.
May I suggest to consider making activity images clickable - setting a link to the activity (same as clicking on the activity name)?
It already works when clicking on a section image, but not when clicking on an activity image (not talking about activity icon).

Temporarily, I changed the code of the respective template on our server to achieve this.

templates/local/content/section/cmitem.mustache, line 77 & 78

<a href="{{cmformat.url}}" onclick="{{{cmformat.onclick}}}"><div class="tac-card-img rounded-top {{^cardimage}} bg-light {{/cardimage}}" style="background-image: url('{{{cardimage}}}');"> </div></a>

Thank you very much.

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

0 participants