CGCalendar add event image to month view

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
echobrin
Forum Members
Forum Members
Posts: 54
Joined: Sat May 29, 2010 6:03 pm

CGCalendar add event image to month view

Post 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!
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: CGCalendar add event image to month view

Post 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.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
echobrin
Forum Members
Forum Members
Posts: 54
Joined: Sat May 29, 2010 6:03 pm

Re: CGCalendar add event image to month view

Post 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.
Locked

Return to “Modules/Add-Ons”