Using the Dotclear wiki syntax with Drupal
Par François Granger le mardi 7 avril 2009, 14:58 - Tips & tricks - Lien permanent
MàJ 20090924 : there is a new version
The Dotclear wiki syntax is simple and allow easy access to the most used styles in a publishing system. It has simple tags for titles, emphasis, bulleted and numbered lists and foot notes.
I already did a quick hack to allow to Use the Dotclear wiki syntax in text editors for BBedit, TextWrangler and MarsEdit.
I had the chance to find the MarkDown module for Drupal. That was a good starting point to work on a Dotclear wiki syntax module for Drupal (click to download).
Installaton of this module is easy.
First, upload the folder dotclear inside the folder /drupal/sites/all/modules/. In all the following steps, replace drupal by the name of your root folder install. If the folder modules does not exists yet (fresh install), create it.
Then, with your web browser, go to http://example.com/drupal/admin/build/modules/list. And scroll down to the section Input filters.
Click the check box near Dotclear wiki filter so that it have a check mark
. Then scroll down to the bottom of the page and click on Save configuration.
Go to /drupal/admin/settings/filters.
Click on Add input format. Name it Dotclear. Allow Anonymous and Authenticated users, check the box close to Dotclear and no other box.
Click Save configuration. Then go back to /drupal/admin/settings/filters/list.
You may select Dotclear and click Set default format if you want all users to use it by default.


Commentaires
Merci pour ce module. Je l'ai installé sur mon site et il fonctionne très bien. As-tu prévu de le publier sur drupal.org ?
En le faisant, je ne savais pas s'il avait un intérêt réel. Je l'ai fait pour me faciliter la vie et pour tester la difficulté de développer avec Drupal. Si il y a un intérêt, je veux bien le publier là-bas. Si tu trouves des bugs ou améliorations, n'hésites pas.
Ce qui serait bien ce serait d'avoir un mini éditeur avec des icônes pour affecter les styles, comme dans DOtclear. Mais ce sera pour plus tard.
Bonjour,
Je viens d'utiliser ce module pour Drupal en le modifiant un tout petit peu :
Dans une prochaine étape je vais modifier l'éditeur HTML MarkItUp pour Dotclear, et ce afin qu'il s'intègre avec le module WYSIWYG.
Je pense qu'un module Drupal pour le filtre Dotclear est tout à fait intéressant pour la communauté.
Une question : où trouver le site des développeurs de la classe class.wiki2xhtml.php ?
Merci pour ce travail
Merci de ce feed back.
J'avais pensé le mettre sur le site officiel de Drupal. Mais devant la difficulté à y ouvrir un compte "développeur", j'ai renoncé.
En ce qui concerne la classe class.wiki2xhtml.php, le développeur principal c'est Olivier Meunier (Auteur de Dotclear, c'est d'ailleurs une classe qui fait parti de Dotclear) son site actuel : http://neokraft.net/. Il a complètement changé d'orientation. Je ne penses pas qu'il ai l'intention de retravailler sur cette classe.