From: Stephen Burrows Date: Tue, 14 Jun 2011 23:24:01 +0000 (-0400) Subject: Last-minute tweaks to the tutorials based on user input. X-Git-Tag: philo-0.9~1^2 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/51af4dbc0b6cb683480ea211ef45761d914d9945?ds=inline;hp=22b7ea83d27048a5261459849e059d1b9e07eceb Last-minute tweaks to the tutorials based on user input. --- diff --git a/docs/tutorials/getting-started.rst b/docs/tutorials/getting-started.rst index d5d4c71..11eb927 100644 --- a/docs/tutorials/getting-started.rst +++ b/docs/tutorials/getting-started.rst @@ -53,7 +53,7 @@ Now that you've got everything configured, it's time to set up your first page! Next, add a philo :class:`.Page` - let's call it "Hello World Page" and use the template you just made. -Now make a philo :class:`.Node`. Give it the slug ``hello-world``. Set the view content type to "Page" and use the page that you just made. If you navigate to ``/hello-world``, you will see the results of rendering the page! +Now make a philo :class:`.Node`. Give it the slug ``hello-world``. Set the ``view_content_type`` to "Page" and the ``view_object_id`` to the id of the page that you just made - probably 1. If you navigate to ``/hello-world``, you will see the results of rendering the page! Setting the root node +++++++++++++++++++++ @@ -78,7 +78,7 @@ Great! We've got a page that says "Hello World". But what if we want it to say s {% if content %}

{{ content }}

{% endif %} -

The time is {% now %}.

+

The time is {% now "jS F Y H:i" %}.

diff --git a/docs/tutorials/shipherd.rst b/docs/tutorials/shipherd.rst index f7988e6..3a62cb0 100644 --- a/docs/tutorials/shipherd.rst +++ b/docs/tutorials/shipherd.rst @@ -3,7 +3,7 @@ Using Shipherd in the Admin The navigation mechanism is fairly complex; unfortunately, there's no real way around that - without a lot of equally complex code that you are quite welcome to write and contribute! ;-) -For this guide, we'll assume that you have the setup described in :doc:`getting-started`. We'll be adding a main :class:`.Navigation` to the root :class:`.Node` and making it display as part of the :class:`.Template`. +For this guide, we'll assume that you have the setup described in :doc:`getting-started`. We'll be adding a main :class:`.Navigation` to the root :class:`.Node` and making it display as part of the :class:`.Template`. Before getting started, make sure that you've added :mod:`philo.contrib.shipherd` to your :setting:`INSTALLED_APPS`. Creating the Navigation +++++++++++++++++++++++