Welcome, Guest
Username: Password: Remember me

TOPIC:

[SOLVED] Add field on calendar 2 years 9 months ago #27207

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);
The following user(s) said Thank You: jojo12

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

[SOLVED] Add field on calendar 2 years 9 months ago #27208

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);
The following user(s) said Thank You: jojo12

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

[SOLVED] Add field on calendar 2 years 8 months 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 2 years 8 months ago #27216

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);
The following user(s) said Thank You: jojo12

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

[SOLVED] Add field on calendar 2 years 8 months 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 2 years 8 months ago #27218

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"

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

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