How do you register a markup parser during module installation

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Kangaby
New Member
New Member
Posts: 6
Joined: Wed Aug 06, 2008 9:08 am

How do you register a markup parser during module installation

Post 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,
Kangaby
New Member
New Member
Posts: 6
Joined: Wed Aug 06, 2008 9:08 am

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

Post 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?
Post Reply

Return to “Developers Discussion”