Hi all,
I'm creating a bridge between a CMS <-> XF and trying to reconcile the fact that the CMS uses (pseudo-)HTML and XF uses BbCode.
For now, I'm using XenForo_Html_Renderer_BbCode::renderFromHtml when posts from CMS needs to get written into XF (so CMS Html->XF BbCode). However, I'm wondering if there is a way to get the html (rendered by XF) returned back after the DataWriter saves so that I can save this as the CMS data.
The main reason why I want to be able to do this (please sanity check maybe there's a simpler method), is to allow the CMS users to utilize all BbCode available through XF and the Html to be consistent across both platforms.
So to simplify, if the process flow is:
I would like to look like this:
Overriding the CMS processor is simple, just need some guidance on the "Magic Process" in the 2nd diagram. Hope this is making some semblance of sense
Thanks in advance and appreciate any pointers/suggestions!
I'm creating a bridge between a CMS <-> XF and trying to reconcile the fact that the CMS uses (pseudo-)HTML and XF uses BbCode.
For now, I'm using XenForo_Html_Renderer_BbCode::renderFromHtml when posts from CMS needs to get written into XF (so CMS Html->XF BbCode). However, I'm wondering if there is a way to get the html (rendered by XF) returned back after the DataWriter saves so that I can save this as the CMS data.
The main reason why I want to be able to do this (please sanity check maybe there's a simpler method), is to allow the CMS users to utilize all BbCode available through XF and the Html to be consistent across both platforms.
So to simplify, if the process flow is:
Code:
pseudo-HTML -> [CMS Processor] -> CMS HTML
I would like to look like this:
Code:
pseudo-HTML -> [XF's renderFromHtml] -> [Save to XF] -> [ Magic Process -> (Final Html from XF) ] -> CMS HTML
Overriding the CMS processor is simple, just need some guidance on the "Magic Process" in the 2nd diagram. Hope this is making some semblance of sense
Thanks in advance and appreciate any pointers/suggestions!
Last edited: