Welcome, Guest
Username: Password: Remember me

TOPIC:

[SOLVED] Add field on calendar 5 months 1 week 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 5 months 1 week ago #27190

  • jojo12
  • jojo12's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 3296
  • Karma: 45
  • Thank you received: 357
I can't help you: the simple list is the simple list is the mandatory menu.
on JEM 2.3.0 stable in latest Joomla (3.9.22) Protostar php7.4.5

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

[SOLVED] Add field on calendar 5 months 1 week 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 5 months 1 week ago #27192

  • hekla
  • hekla's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 159
  • Karma: 8
  • Thank you received: 82
I think you could do it with an template override.
JEM 2.3.0 / JEM 2.3.0 with core mods (custom fields)
Joomla always up to date
php 7.3

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

[SOLVED] Add field on calendar 5 months 1 week ago #27198

to note...

like Hekla mentioned a template override might work.
Code is defined within com_jem/tmpl/calendar/default.php
(won't respond to PM)
==================================================================
running local: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0beta3 + PHP 7.2.25
running live: jem2.3.0

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

[SOLVED] Add field on calendar 5 months 1 week ago #27205

  • hekla
  • hekla's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 159
  • Karma: 8
  • Thank you received: 82
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!
JEM 2.3.0 / JEM 2.3.0 with core mods (custom fields)
Joomla always up to date
php 7.3
The following user(s) said Thank You: Bluefox

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

Time to create page: 0.235 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......