Skip to content

Commit

Permalink
Add note about front page layouts to theming docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Nov 26, 2013
1 parent d925116 commit d64c746
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doc/sysadmin-guide.rst
Expand Up @@ -31,6 +31,8 @@ CKAN, you will need to ask them to create a sysadmin user.
Adding more sysadmin accounts is done in the same way. It cannot be done via
the web UI.

.. _admin page:

-------------------------
Customizing look and feel
-------------------------
Expand Down
13 changes: 11 additions & 2 deletions doc/theming/templates.rst
Expand Up @@ -338,8 +338,17 @@ code for the "featured group" that appears on the front page:
:start-after: {# Start template block example. #}
:end-before: {# End template block example. #}

This code calls a :ref:`template snippet <snippets>` that contains the actual
Jinja and HTML code for the featured group, more on snippets later.
.. note::

This code calls a :ref:`template snippet <snippets>` that contains the
actual Jinja and HTML code for the featured group, more on snippets later.

.. note::

The CKAN front page supports a number of different layouts: layout1,
layout2, layout3, etc. The layout can be chosen by a sysadmin using the
:ref:`admin page <admin page>`. This tutorial assumes your CKAN is set to
use the first (default) layout.

When a custom template file extends one of CKAN's default template files using
``{% ckan_extends %}``, it can replace any of the blocks from the default
Expand Down

0 comments on commit d64c746

Please sign in to comment.