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.
Markdown editor
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Markdown editor
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}
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}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
bruco
Re: Markdown editor
Thanks for your prompt reply.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}
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?
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Markdown editor
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.
{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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
bruco
Re: Markdown editor
Sorry I am a very newbie and I do not understand... what do you mean by "block representing column3"?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.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Markdown editor
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.
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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
bruco
Re: Markdown editor
Very clear. Thanks for your patience.Then I went and edited my homepage, which uses that template.... and in the text area for column3 I put the text described above.
