We are trying to create a timeline event of type "timeline_common_post" via API. Is there a recommended way to do this, or is it necessary to create a custom service?
I think the timeline module isn't ready to use this method, considering that the first action of entity_add is to try to import the FormsEntryHelper class from the module in context, and there's no BxTimelineFormsEntryHelper in the timeline module files.
Warning: require_once(/home/unazyrgon/public_html/modules/boonex/timeline/classes/BxTimelineFormsEntryHelper.php): Failed to open stream: No such file or directory in /home/unazyrgon/public_html/inc/utils.inc.php on line 913
Hello @Zyrgon Portugal !
Yes, Timeline has the serviceEntityAdd method and you may use it like shown here https://unacms.com/d/api-to-create-events-and-more
Z
I @LeonidS, thank you for the answer.
I think the timeline module isn't ready to use this method, considering that the first action of entity_add is to try to import the FormsEntryHelper class from the module in context, and there's no BxTimelineFormsEntryHelper in the timeline module files.
Warning: require_once(/home/unazyrgon/public_html/modules/boonex/timeline/classes/BxTimelineFormsEntryHelper.php): Failed to open stream: No such file or directory in /home/unazyrgon/public_html/inc/utils.inc.php on line 913