help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

[SOLVED] Add field on calendar

Re: [SOLVED] Add field on calendar

4 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
Code:
$content .= JemHelper::caltooltip($catname.$eventname.$timehtml.$venue.$eventstate, $eventdate, $row->title . $statusicon, $detaillink, 'editlinktip hasTip', $timetp, $category->color);
to
Code:
$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.

Re: [SOLVED] Add field on calendar

4 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
Code:
$content .= JemHelper::caltooltip($catname.$eventname.$timehtml.$venue.$eventstate, $eventdate, $row->title . $statusicon, $detaillink, 'editlinktip hasTip', $timetp, $category->color);
to
Code:
$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.

Re: [SOLVED] Add field on calendar

4 years 9 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.

Re: [SOLVED] Add field on calendar

4 years 9 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
Code:
$content .= '<br />' . $this->escape($row->custom1);
instead of
Code:
$content .= $this->escape($row->custom1);
The following user(s) said Thank You: jojo12

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

Re: [SOLVED] Add field on calendar

4 years 9 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.

Re: [SOLVED] Add field on calendar

4 years 9 months ago
#27218
then use:
Code:
$content .= '<br />service: ' . $this->escape($row->custom1);
with this you get: "service: fiat panda"

or without colon ":"
then use:
Code:
$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.438 seconds