Changes between Version 13 and Version 14 of UsingMarkup


Ignore:
Timestamp:
06/06/2012 09:30:01 AM (3 years ago)
Author:
Alir3z4
Comment:

Added a link list about snippets and code-examples that shows how to implement such a business logic.

Legend:

Unmodified
Added
Removed
Modified
  • UsingMarkup

    v13 v14  
    2626
    2727Now you've got the same effect: when creating or editing entries in the admin, you'll only see the field which accepts Markdown syntax (body_markdown), but when saving, the "body" field will be auto-filled with the corresponding XHTML. Then in your template, you can pull in entry.body, and save yourself a little processing time everytime the page is loaded.
     28
     29Also it's gonna be more efficient to have a Markdown Field that do the job, below you can see some snippets and code example about how to implement such a field.
     30
     31* [http://djangosnippets.org/snippets/882/ MarkdownTextField]
Back to Top