|
DisplayContentInTemplates
How to display page content in your templates
The documentation is now available here: http://packages.python.org/django-page-cms/display-content.html |
Sign in to add a comment
|
|
|
Search
|
|
DisplayContentInTemplates
How to display page content in your templates
The documentation is now available here: http://packages.python.org/django-page-cms/display-content.html |
Sign in to add a comment
Can some mentioned of content.html be made on this page. I'd named one of my templates content.html and any use of show_content such as {% show_content page_object "title" %} recursively included the template!
When should one use a placeholder and when should one use show_content?
how do truncate the "body"?
to truncate the body you can use the builtin "truncatewords" (or the "truncatewords_html") filter. The following example will truncate the body after 100 words:
{% show_content current_page "body"|truncatewords:100 %}
{% show_content current_page "body"|truncatewords:100 %}- this method does not work.
My partner figured it out its
Don't you think the tags page_menu, page_sub_menu... and so on, should also allow "slug" as page parameter ?
Right! Slug would be right parameter here