This might be a question for the data connector area, but I would thought I would throw it out here first.
Basically we have our events in a database, but the schema is pretty complex. So, we want to control the presentation of the event in both summary form on the calendar and then provide a link to the details. And we are really only talking about viewing the calendar; I will handle the create/update/delete operations differently.
I have downloaded the Scheduler and there are gobs of examples.
Perhaps someone can point me to a specific one that gives me some confidence that I can write my own customized presentation of the event in the calendar?
Thanks in advance!
You can start from
samples\02_customization\06_templates.html
samples\02_customization\16_custom_form.html
docs.dhtmlx.com/doku.php?id=dhtm … ng_content
Thanks for the quick reply. I will go through all these, but they look like client-side stuff, which I suppose I can make work. Just have to figure out how to get JSON or something similar from the server up to the client with all the events I need to do the custom display for.
Or is there a server-side PHP connector that helps me out with this?
Yep, there is a ready to use connector solution.
Check
samples\01_initialization_loading\05_loading_mysql.html
samples\01_initialization_loading\php\events.php
in events.php you can alter the list of custom fields which you need to have on client side ( add necessary fields in render_table command )
docs.dhtmlx.com/doku.php?id=dhtm … #connector
Is it possible to add a virtual field in the php script?
For example, for each event, I want to add a field which is not contained in the database. Can I do that on the server side script?
Do you need that fields, to set some custom value during data loading - or it will be set on client side and need for saving only ?
In second case you need not any extra steps, because client side will send all custom data.
If you need it for loading you can use something like
render_table(“table”,“id”, “a,b,c,d,d(custom1)”)
which will produce extra field custom1 ( with values same as d )
you can use beforeRender event to attach some logic which will fill such virtual field with meaningful data.
I needed server-side support. Added the event, works like a champ.
Nice!