There has been an open request for this in the bug tracker for some time,
including some example code how to add this feature.
I think most discussion in the thread is also already found in the comments
of the bug report.
Please check if there is anything missing there and if so please add to the
Mailing list: https://launchpad.net/~zim-wiki
Post to : firstname.lastname@example.org
Unsubscribe : https://launchpad.net/~zim-wiki
More help : https://help.launchpad.net/ListHelp