Welcome, Guest
Username: Password: Remember me

TOPIC:

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

  • hekla
  • hekla's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 159
  • Karma: 8
  • Thank you received: 82
An other (better) version ;-)

If you want to have the content of custom field 1 inside the event link:

In the override file change line 272 and line 277 from
$content .= JemHelper::caltooltip($catname.$eventname.$timehtml.$venue.$eventstate, $eventdate, $row->title . $statusicon, $detaillink, 'editlinktip hasTip', $timetp, $category->color);
to
$content .= JemHelper::caltooltip($catname.$eventname.$timehtml.$venue.$eventstate, $eventdate, $row->title . $statusicon . '<br />' . $row->custom1, $detaillink, 'editlinktip hasTip', $timetp, $category->color);
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: jojo12

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

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

  • hekla
  • hekla's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 159
  • Karma: 8
  • Thank you received: 82
An other possibility:
If you want to have the content of custom field 1 inside the tooltip link:

In the override file change line 272 and line 277 from
$content .= JemHelper::caltooltip($catname.$eventname.$timehtml.$venue.$eventstate, $eventdate, $row->title . $statusicon, $detaillink, 'editlinktip hasTip', $timetp, $category->color);
to
$content .= JemHelper::caltooltip($catname.$eventname.$timehtml.$venue.$eventstate, $eventdate, $row->title . $statusicon . '<br />' . $row->custom1, $detaillink, 'editlinktip hasTip', $timetp, $category->color);
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: jojo12

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

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

Hi and thanks for solved ... it works !!!. Last thing..how can I make him read one under the other? Now it appears on the same line, I want to display it below as the last field ... see attachment


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

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

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

  • hekla
  • hekla's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 159
  • Karma: 8
  • Thank you received: 82
Oops, I made a double post yesterday, sorry – I thought the first one was got a timeout while saving, hoever …

Just use
$content .= '<br />' . $this->escape($row->custom1);
instead of
$content .= $this->escape($row->custom1);
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: jojo12

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

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

Thanks ... now it works. Last thing and then I don't write anymore. If I want to insert in front of the entry "fiat panda" a fixed entry "service" ... that would always be the same ... see attachment ... where you see the X insert the entry "service"
Attachments:

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

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

  • hekla
  • hekla's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 159
  • Karma: 8
  • Thank you received: 82
then use:
$content .= '<br />service: ' . $this->escape($row->custom1);
with this you get: "service: fiat panda"

or without colon ":"
then use:
$content .= '<br />service ' . $this->escape($row->custom1);
with this you get: "service fiat panda"
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.

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