Jul 05, 2009, 09:27 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: 1 [2] 3   Go Down
  Print  
Author Topic: [ granted (both!) ] Textile or Markdown Integration  (Read 13646 times)
0 Members and 1 Guest are viewing this topic.
Briggsy
Sr. Member
****
Posts: 372



WWW
« Reply #15 on: Jan 02, 2006, 09:25 PM »

Has there been any further work on this? I'm looking for a way to create clean XHTML code that meets accessibility standards and it appears the FCK just adds tons of tags.
Logged

Emergency Management Academy of New Zealand
      http://www.emanz.ac.nz

MODx Sandbox   Login: sandbox  Password: castle

Admin Sandbox   Login: sandbox  Password: castle
zi
MODx Special Forces /
Administrator
*
Posts: 3,329


May Peace Be On You


WWW
« Reply #16 on: Jan 03, 2006, 04:53 AM »

http://modxcms.com/forums/index.php/topic,434.0.html

Try it Wink
Logged

davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #17 on: Jan 03, 2006, 06:26 AM »

That's for Textile (I'll test it this week), is someone handling MarkDown ?

I had pointed to phpMarkDown which should make things easier...
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
Berlueur
Jr. Member
*
Posts: 12

I love MODx!


« Reply #18 on: Feb 27, 2006, 03:04 AM »

Yeah, what about Markdown? Anybody working on that? If not, anybody could?

I would really like a Markdown plugin of some sort... I absolutely love Markdown.
Logged
davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #19 on: Feb 27, 2006, 03:50 AM »

I am no expert but phpMarkDown seems to make it easy to integrate to a CMS.

Instructions are here : http://www.michelf.com/projects/php-markdown/
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
garryn
Coding Team
*
Posts: 1,252



WWW
« Reply #20 on: Feb 27, 2006, 04:07 AM »

Hi,

Looking at the phpMarkdown instructions, I think the following plugin should work - set it to run on the 'OnWebPagePrerender' event:

Code:
// phpMarkdown integration

$e = &$modx->Event;

switch ($e->name) {
case "OnWebPagePrerender":
include_once("markdown.php"); //change path to where the markdown script is located
$pg=&$modx->documentOutput;
$modx->documentOutput = Markdown($pg);
break;
default:
return;
break;
}

I've not tried this yet but, in theory, should work.  Wink

Cheers, Garry
Logged

davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #21 on: Feb 27, 2006, 08:35 AM »

If it's as simple as that, then it's truly a testimony of MODx power Smiley

Berlueur, could you try that and report ?
Thanks !
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
Berlueur
Jr. Member
*
Posts: 12

I love MODx!


« Reply #22 on: Feb 27, 2006, 11:24 AM »

Yeah, I have made my "own" Markdown plugin after posting my message and before reading the responses here... (by totally ripping off Raymond Irving's plugin).

I'm actually a bit excited to have "made" my first MODx plugin... so much so that I made a little package.

(BTW, MODx thoroughly rocks...)

The plugin lives here.
« Last Edit: Feb 27, 2006, 07:17 PM by Berlueur » Logged
Djamoer
Emeritus
******
Posts: 1,495

No one can limit a man other than the man himself.


WWW
« Reply #23 on: Feb 27, 2006, 11:37 AM »

Yeah, I have made my "own" Markdown plugin after posting my message and before reading the responses here... (by totally ripping off Raymond Irving's plugin).

I'm actually a bit excited to have "made" my first MODx plugin... so much so that I made a little package.

Here goes.

(BTW, MODx thoroughly rocks...)

Did you post it somewhere on the forum? Please make a new topic with [Plugin] as the prefix of the title, and name the plugin, so we can add it to the repository Wink Good job with your first try...

Have fun with MODx! Grin
Logged

Berlueur
Jr. Member
*
Posts: 12

I love MODx!


« Reply #24 on: Feb 27, 2006, 12:11 PM »

Yes, it is attached to my post, just above...

I will make a new topic, although it feels a bit strange since I did almost nothing...
Logged
chanh
Guest
« Reply #25 on: Feb 27, 2006, 04:47 PM »

I download the package and follow the readme but when I edit to document the FCKeditor kick in and I don't see any markdown stuff even I set FCKEditor to no in the system config.

What am I missing?

Thanks
Logged
davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #26 on: Feb 27, 2006, 06:23 PM »

Maybe the little instructions I wrote for the Textile plugin will help, since the principle is similar.

Just modify <textile> and </textile> by <markdown> and </markdown> (that is, if berlueur followed the same logic , didn't test this one yet).

Hope this helps !
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
Berlueur
Jr. Member
*
Posts: 12

I love MODx!


« Reply #27 on: Feb 27, 2006, 06:24 PM »

Yes, Markdown directives need to be enclosed in <markdown> </markdown tags.
Logged
davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #28 on: Feb 27, 2006, 07:05 PM »

Yeah well let's also mention there is a ReadMe in the distributed plugin Smiley

Berlueur, so that everyone downloads the right version, I suggest you take your download off this thread and keep only one on your the official plugin post Smiley

This will avoid confusion and mistakes Tongue

Anyway, great work this is very nice having Mardown working Grin

Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
chanh
Guest
« Reply #29 on: Feb 27, 2006, 09:22 PM »

I put <markdown>[*content*]</markdown> in the template and it works but I did the same thing for <textile></textile> but for some reason it does not work the tag that tried.
Logged
Pages: 1 [2] 3   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!