Welcome, Guest
Username: Password: Remember me

TOPIC:

[SOLVED] Add field on calendar 3 years 3 months ago #27189

Hi, I need your support. I would like to insert an entry of the COM_JEM_EVENT_CUSTOM_FIELD1 strings as a preview in the calendar. to be added to the event title and date. How can I do? See Attachment.
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by jojo12.

[SOLVED] Add field on calendar 3 years 3 months ago #27190

I can't help you: the simple list is the simple list is the mandatory menu.

Please Log in or Create an account to join the conversation.

[SOLVED] Add field on calendar 3 years 3 months ago #27191

Ok, do you have any idea from which file it recalls those 2 items (title and time)

Please Log in or Create an account to join the conversation.

[SOLVED] Add field on calendar 3 years 3 months ago #27192

  • hekla
  • hekla's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 359
  • Thank you received: 178
I think you could do it with an template override.

Please Log in or Create an account to join the conversation.

[SOLVED] Add field on calendar 3 years 3 months ago #27198

to note...

like Hekla mentioned a template override might work.
Code is defined within com_jem/tmpl/calendar/default.php

Please Log in or Create an account to join the conversation.

[SOLVED] Add field on calendar 3 years 3 months ago #27205

  • hekla
  • hekla's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 359
  • Thank you received: 178
I just had a look.

I suppose you use JEM 2.3.0 and the default layout style "responsive style" in the JEM basic settings – if not, please tell us your setting and version.

How you can do it:

Create a template override for "calendar" (go to "templates", choose your template, choose "Create Overrides", choose "com_jem" an there click on "calendar".)

Open the override file "default.php" in
/templates/YOUR-TEMPLATE/html/com_jem/calendar/responsive/

after line 272
$content .= JemHelper::caltooltip($catname.$eventname.$timehtml.$venue.$eventstate, $eventdate, $row->title . $statusicon, $detaillink, 'editlinktip hasTip', $timetp, $category->color);

insert a new line
$content .= $this->escape($row->custom1);

an the same after line 277
$content .= JemHelper::caltooltip($catname.$eventname.$timehtml.$venue.$eventstate, $eventdate, $row->title . $statusicon, $detaillink, 'editlinktip hasTip', $timetp, $category->color);

this should work.
Have fun!
The following user(s) said Thank You: Bluefox

Please Log in or Create an account to join the conversation.

Time to create page: 0.575 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......