Skip to content

Commit

Permalink
Document the section better
Browse files Browse the repository at this point in the history
  • Loading branch information
batiste committed Jun 12, 2016
1 parent 293d40a commit 363e12d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ dynamically appears in the page admin interface.

Each page can have a different template with different placeholders.

.. image:: https://github.com/batiste/django-page-cms/raw/master/doc/admin-screenshot1.png
.. image:: https://github.com/batiste/django-page-cms/raw/master/doc/images/admin-screenshot1.png

File renamed without changes
Binary file added doc/images/section.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion doc/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The project code repository is found at this address: http://github.com/batiste/
Screenshot
============

.. image:: admin-screenshot1.png
.. image:: images/admin-screenshot1.png

Features
============
Expand Down
10 changes: 8 additions & 2 deletions doc/placeholders.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,19 @@ Template syntax example::
<img src="{{ img_src }}" alt=""/>

The **section** option
-----------------
-------------------------

The **section** option is used to group a placeholder into a section in admin.
The **section** option is used to group placeholders into a section in the admin interface.
A section is collapsed by default and hides the fields.

Template syntax example::

<meta name="description" content="{% placeholder "meta_description" section "SEO" %}" />
<meta name="description" content="{% placeholder "meta_keywords" section "SEO" %}" />

You will get

.. image:: images/section.png

The **parsed** keyword
-----------------------
Expand Down
1 change: 1 addition & 0 deletions example/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{% placeholder "meta_description" section "SEO Options" %}">
<meta name="description" content="{% placeholder "meta_keywords" section "SEO Options" %}" />
<meta name="author" content="">

<title>{% placeholder 'title' %}</title>
Expand Down
5 changes: 1 addition & 4 deletions requirements/documentation.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
django>=1.8,<1.10
django-mptt>=0.8.0
six>=1.5.2
Pillow>=3.2.0<3.3.0
-r base.txt
sphinx

0 comments on commit 363e12d

Please sign in to comment.