Skip to forum content

LuxCal Web Calendar

The place for news, questions and suggestions

You are not logged in. Please login or register.


Post new reply

Post new reply

Compose and post your new reply

You may use: BBCode Images Smilies

All fields with bold label must be completed before the form is submitted.

Required information for guests


Required information

Topic review (newest first)

3

Hi Smorg,
To add the subcategory to the evnet title in month view can be achieved as follows (for LuxCal 5.3.3).:
The subcategory name for an event is held in the variable $evt['snm'].
So edit the file "pages/month.php" and add just below line 26 . . . .

$snm = $evt['snm'] ? " - {$evt['snm']}" : '';

and change line 28 from . . . .

echo "<div {$onClick}{$popAttr} title=\"{$title}\">{$chBox}{$event}</div>\n";

to . . . .

echo "<div {$onClick}{$popAttr} title=\"{$title}\">{$chBox}{$event}$snm</div>\n";

In other words add "$snm" after "{$event}".

The category /subcategory drop-down menus for the Add / Edit event window are produced in the "pages/eventform1.php" script, functions catMenu (line 24) and scatMenu (line 43) respectively.

Roel

2

I have found the same variable is used when hovering over the event.  The div id is htmlPop if this helps you

1

I have found WHERE to add this, but not sure what variable to use.

In context, I have too many subcategories to be able to use colours to distinguish between them, as the calendar is on display in the room.

Supplementary, where are drop downs for categories being built? I want to be able to hide a category on a particular day.

Thanks