Author: batiste.bieler
Date: Sat Jun 13 08:29:32 2009
New Revision: 562
Modified:
wiki/PlaceHolders.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/PlaceHolders.wiki
==============================================================================
--- wiki/PlaceHolders.wiki (original)
+++ wiki/PlaceHolders.wiki Sat Jun 13 08:29:32 2009
@@ -5,16 +5,16 @@
The syntax for placeholder is the following:
{{{
-{% placeholder <name> [on <page>] [with [<widget>] [parsed[ as
<varname>]] %}
+{% placeholder <name> [on <page>] [with [<widget>] [parsed] [as
<varname>] %}
}}}
The `page` and `widget` parameter are both optional. If the `page`
parameter is not sepcified it will automatically take the current page (by
using the `current_page` context variable) to get the content of the
placeholder.
-If you pass the word "parsed" the content of the template will be
evaluated as Django template, within the current context. Django page cms
will search for a template with the same name of the palceholder and try to
render it with this template.
+If you use the keyword ´parsed´ the content of the template will be
evaluated as Django template, within the current context. Django page CMS
will search for a template with the same name of the palceholder and try to
render it with this template.
Each placeholder with the "parsed" parameter defined will also have a note
in the admin interface noting its ability to be evaluated as template.
-You can now also use a variable name optionally that is automatically set
in the context view with the content of the placeholder.
+With the ´as´ option you define a variable that is automatically set in
the template's context with the content of the placeholder.
Here is some possible syntax:
@@ -28,6 +28,8 @@
{% placeholder body on root_page %}
{% placeholder title on current_page parsed %}
{% placeholder title on root_page with TextInput parsed as
root_page_title %}
+
+{% placeholder foo on current_page with TextInput as foo %}
}}}
{{{
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---