Page 1 of 1
Markdown editor
Posted: Thu Mar 22, 2007 5:15 pm
by bruco
Founded few previous messages, but not understood if they deal with the same topic.
I wish to use MarkDown (
http://daringfireball.net/projects/markdown/) in place of FCKEditor to write page content, or at least in addition to FCKEditor. I know that MarkDown has a PHP porting (
http://www.michelf.com/projects/php-markdown/) but I has no idea on how install it in CMS as a plugin. Has anybody already made such thing and can help me? Many thanks for your patience.
Re: Markdown editor
Posted: Thu Mar 22, 2007 5:18 pm
by calguy1000
markdown is built in to CMS Made simple, but the editor or toolbar for markdown isn't.
the toolbar can be found here:
http://dev.cmsmadesimple.org/projects/markdowntoolbar/
to use markdown in cms, just do this {content|markdown} or.... {cms_markdown}{content}{/cms_markdown}
Re: Markdown editor
Posted: Thu Mar 22, 2007 6:44 pm
by bruco
calguy1000 wrote:
markdown is built in to CMS Made simple, but the editor or toolbar for markdown isn't.
the toolbar can be found here:
http://dev.cmsmadesimple.org/projects/markdowntoolbar/
to use markdown in cms, just do this {content|markdown} or.... {cms_markdown}{content}{/cms_markdown}
Thanks for your prompt reply.
It seems to me that the project site you indicate contains nothing. Isn't it?
{content|markdown} "crashes" PHP and {cms_markdown}{content}{/cms_markdown} inserts a lot of tags.
Surely I am not able to use it correctly.
Is there available any documentation or tutorial page?
Re: Markdown editor
Posted: Thu Mar 22, 2007 6:52 pm
by calguy1000
I added this to my template:
{cms_markdown}{content block='column3'}{/cms_markdown}
Then, I edited my homepage, and in the block representing column3 I put this text (some markdown stuff):
# H1
## H2
### H3
#### H4
Then hit submit.... and reloaded my homepage.
it worked well.
Re: Markdown editor
Posted: Thu Mar 22, 2007 7:18 pm
by bruco
calguy1000 wrote:
I added this to my template:
{cms_markdown}{content block='column3'}{/cms_markdown}
Then, I edited my homepage, and in the block representing column3 I put this text (some markdown stuff):
# H1
## H2
### H3
#### H4
Then hit submit.... and reloaded my homepage.
it worked well.
Sorry I am a very newbie and I do not understand... what do you mean by "block representing column3"?
Re: Markdown editor
Posted: Thu Mar 22, 2007 7:28 pm
by calguy1000
my template has four content blocks. one at the top, and one for each of three columns.
they are identified like this (there's lots more layout stuff too in the template).
{content}
{content block='column1'}
{content block='column2'}
{content block='column3'}
now, when I create a new page, and specify to use that template, or edit a page with that template, I get four text areas for which I can fill in content.
I changed the template so that instead of {content block='column3'} I had {cms_markdown}{content block='column3'}{/cms_markdown}
Then I went and edited my homepage, which uses that template.... and in the text area for column3 I put the text described above.
Re: Markdown editor
Posted: Thu Mar 22, 2007 7:33 pm
by bruco
Then I went and edited my homepage, which uses that template.... and in the text area for column3 I put the text described above.
Very clear. Thanks for your patience.