XOOPS / XoopsCore

Core Framework for next version of XOOPS CMS: 2.6.0
https://xoops.org
138 stars 81 forks source link

Ability to use Markdown for Admin Help display in modules #547

Open zyspec opened 7 years ago

zyspec commented 7 years ago

Enhancement

Instead of hand coding the ./language/{language}/help pages it would be preferable to have something like \Xmf\Module\Admin methods to allow module developers to create the document(s) using class methods. The thought is to wrap something like Parsedown into a Xmf (or XOOPs) class. We could then create rich documents more easily and theoretically have these translated much more easily using Transifex.

Obviously we'd want/need to maintain backward compatibility but we should be able to check for an additional file extension in the file loader to see if the markup file exists in addition to checking for the .html & .tpl files it looks for now and manipulate it accordingly.

It should be relatively easy to include a jscript Markdown editor (something like SimpleMDE in the TDMCreate module to allow developers the ability to create the help file too.