Page 1 of 1

CGCalendar add event image to month view

Posted: Mon Jul 17, 2017 7:55 pm
by echobrin
In CGCalendar I created a custom field called Image and I can get the image to display in event view by adding this to the event view template:

Code: Select all

{if isset($event.fields)}
  <div class="calendar-fields">
    {foreach $event.fields as $fieldname => $fieldrec}
            <img src="{uploads_url}/{$fieldrec.field_value}"/>
    {/foreach}
  </div>
{/if}
Now I'd like to display a small thumbnail of the image next to the event title in full/month view. Would this be done in FullCalendar View template or am I looking in the wrong place? I don't see where the individual events are built in the FullCalendar View template. Thanks!

Re: CGCalendar add event image to month view

Posted: Sat Jul 29, 2017 5:32 pm
by paulbaker
CGCalendar uses this javascript library to display the monthly view: https://fullcalendar.io/

So you would have to modify that. I have changed CSS etc for that view but never dug as deeply as you will need to. Give it a try and let us know any questions.

Re: CGCalendar add event image to month view

Posted: Sat Jul 29, 2017 7:23 pm
by echobrin
Thanks for your reply. I was unable to make any headway on my own so I hired someone and he got it working.