I have a Dokuwiki markup parser I cobbled together for another CMS and I want to convert it to work on CMSMS.
I'll just make it a module, bobs your uncle.
I'm assuming at this stage, it would work like this:
I would select DokuwikiParser as the WYSIWYG editor (in place of TinyMCE) in the page when you create it, then fill the page with Dokuwiki syntax, and when the page is read for display, it would be parsed by my parser and then the resultant HTML would be handed off to smarty or echo for rendering.
Is this how it works?
Does CMSMS even have the concept of different parsers?
Thanks in advance,
How do you register a markup parser during module installation
Re: How do you register a markup parser during module installation
In class.content.inc.php I've found reference to:
Markup()
SetMarkup($markup)
Both of which appear to never be called; with the default markup being set in function SetInitialValues()
So it appears that CMSMS doesn't support different markup parsers, even though Smarty appears to (well markdown as a plugin at least) as far as I can tell. Is this something that is on the horizon?
Markup()
SetMarkup($markup)
Both of which appear to never be called; with the default markup being set in function SetInitialValues()
Code: Select all
$this->mMarkup = 'html' ;