Page 1 of 1

How do you register a markup parser during module installation

Posted: Sun Aug 10, 2008 2:42 am
by Kangaby
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,

Re: How do you register a markup parser during module installation

Posted: Sun Aug 10, 2008 11:19 am
by Kangaby
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()

Code: Select all

$this->mMarkup = 'html' ;
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?