I have to say that this is a great plugin, but I have found it really hard to find any documentation - I can see that there is loads, but also, lots of it is at the moment outdated… Can you please help me with displaying custom values in sidebar?
Basically, I want to add a ‘event_name’ custom field, so the long ‘text’ field will be used as an event description. I have added an ‘event_name’ to the Custom Fields. I have modified a sidebar.php to display:
Note that I have tried with the {event_name} and {EVENT_NAME}. I can see that it is saved in the DB, but I don’t quite know how to get this value. I have tried using the
scheduler.getLabel("event_name", event.event_name)
in the line above, but this breaks my website:).
Unfortunately you can’t include custom fields in sidebar , in such way. getLabel solution can be used within client side logic only , and only inside the scheduler, as for now sidebar can contain only date and text of events.
Thank you very much for that Ilya! I have implemented all that, but it still wasn’t showing the name. Then I spent another 3h reading the code etc and figured out that basically, the class wasn’t getting any custom fields from the database. So, if anybody else is following thius thread, make sure that you find all places in the SchedulerHelper.php where other fields are read or updated from/to database and also add this custom filed there, too… I have found about 6-8 lines needed updating and that seems to work:)
I wrote a plugin that was designed to display the value of a custom field in the sidebar for a post or page… check out http://www.mlynn.org/graceful-sidebar-plugin the graceful sidebar plugin.
Good Luck!
Mike
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan