Author: batiste.bieler
Date: Wed Mar 25 10:44:45 2009
New Revision: 414

Added:
    wiki/DisplayContentInTemplate.wiki

Log:
Created wiki page through web user interface.

Added: wiki/DisplayContentInTemplate.wiki
==============================================================================
--- (empty file)
+++ wiki/DisplayContentInTemplate.wiki  Wed Mar 25 10:44:45 2009
@@ -0,0 +1,29 @@
+#summary How to display page content in your templates
+
+==get_content template tag==
+
+Store a content type from a page into a context variable that you can  
reuse after.
+
+{{{
+    {% get_content page_object "title" as content %}
+}}}
+
+You can also use the slug of a page
+
+{{{
+    {% get_content "my-page-slug" "title" as content %}
+}}}
+
+==show_content template tag==
+
+Output the content of a page directly within the template.
+
+{{{
+    {% show_content page_object "title" %}
+}}}
+
+You can also use the slug of a page
+
+{{{
+    {% show_content "my-page-slug" "title" %}
+}}}
\ No newline at end of file

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to