Using select list label instead of key in event_bar_text

Hello :slight_smile:

At first I’d say this is a great, and moreover free plugin. This work is very, very appreciated. :slight_smile: Many thanks for your great work.

Well, I have a small issue I’d like to submit.
I use Scheduler 2.3 for Joomla. The website is for my IT training company. Therefore, we need to display on our site the training calendar, in an efficient and simple way. This calendar won’t be updated by me but by the administration’s employees who don’t know anything about php, joomla, etc. So I needed something really simple to update too. I found your plugin, and it works perfectly, hurray ! :smiley:

Onto my issue : Instead of the classical “Description” textbox which is displayed as text on the event bar, I wanted a dropdown list, where updaters could choose the name of the training, instead of typing it, because we have a limited range of trainings. So I changed the type of the field, not adding any new field (not needed).

The problem is that on the calendar, instead of “Excel”, “Word”, “PHP”… the bars are displaying “text_0”, “text_1”… which are, I guess, the default options values of the select list.
I really would like to display the label of the option here, or at least be able to modify the value attribute of the select tag when I create/edit options.

Could someone help me out to do this, please ? I tried to edit dhtmlxSchedulerConfigurator.php file because it seems the things I want to do are in it but without success.

Many thanks for the help and for the plugin itself again. :slight_smile:

Go to the Templates panel
docs.dhtmlx.com/doku.php?id=dhtm … #templates

set event_text content as

return scheduler.getLabel("text", event.text);

where “text” - name of the dropdown field

I must admit I didn’t expect a so easy solution and a so quick answer.

Many thanks for your really quick answer. Please keep up the great work, this module is the best in its category ! I must also have a look of other modules :smiley:

By the way, do we have any chance to set manually hex code for bar colors instead of choosing on the panel ?

to set manually hex code for bar colors instead of choosing on the panel ?
Unfortunatley there is no easy way, you can tweak it in the saved configuration ( saved in database with other joomla options ) , but it will be reverted back after next settings saving.

Ok, you’re right, in the scheduler_php field… I already tried this but in the scheduler_stable_config field, that’s why it didn’t work :laughing: Anyway, it works like a charm, thanks again for your kind help.

Same problem, text_0. This solution worked great!

Thanks