Back to MyCalendar Support

Hessel
Hessel

Hello,

I have 2 questions and I hope you could help me out with a small personal change to the plugin. Your support would be of great help.

1- I would like to delete the time notation after the event title from the ListEvent component in the Front-End. I searched the component wich lead me to the event partial how ever from there I can't figure out how to remove the time notation.

2- I use 2 ListEvent components , from one of them, displaying only the past events, I would like to change the sort order starting with the last event close to the current day at the top. ( for example events in 2017 on top, and further from today at the bottom)

I hope to hear from you, please do not rush, only if you have time.

Kind regards,

Hessel

KurtJensen
KurtJensen

I have pushed an update that makes your request possible.
1 - You will need to make your own partial in the CMS section of backend:
ListEvents/event.htm

<li{% if ev.class %} class="{{ ev.class }}"{% endif %} title="{% if ev.title %}{{ ev.title }}{% else %}{{ ev.text|striptags|slice(0,50) }}...{% endif %}">
    {% if ev.link %}<a href="{{ ev.link|raw }}">{% endif %}{{ ev.name|raw }}{% if ev.link %}</a>{% endif %}
</li>

2 - Set the new property "Sort Descending" to "YES"

I have been making quite a few changes to this plugin lately and was not really ready to push it out until I had tested a little more but I wanted to accommodate your requests. PLEASE report any issues promptly and I will rush to fix anything I may have broken recently.

Hessel
Hessel

Thank you Kurt for the fast reply and your support! I managed to hide the time notation just like you said. You haven't broken anything as far as I can see, however the Sort Descending option isn't working yet. I tried some options changing to raw data and without stylesheet but that wasn't succesfull either. Is it perhaps because I overwrite the component?

KurtJensen
KurtJensen

I will take another look at it in a couple hours. I am busy with some training for a bit.

KurtJensen
KurtJensen

Fixed sorting. Was cause by dumb typo. Update to 1.2.12 and try again please.

1-5 of 5