Difference between revisions of "S2 Cookbook: Pages"

From Dreamwidth Notes
Jump to: navigation, search
m (Created page with 'Category: S2 Cookbook')
 
Line 1: Line 1:
 +
All S2 code operates within the context of a Page class.
 +
 +
Also see these chapters for specific page examples:
 +
 +
* [[S2 Cookbook: Recent Pages]]
 +
* [[S2 Cookbook: Tag Page]]
 +
* [[S2 Cookbook: Archive Pages]]
 +
* [[S2 Cookbook: Reading Pages]]
 +
* [[S2 Cookbook: Entry Pages]]
 +
 +
== Get the current Page ==
 +
 +
Use the [http://www.dreamwidth.org/customize/advanced/layerbrowse?id=core2#func.get_page%28%29 get_page()] function to get the current page.
 +
 +
== Get the current page's view type ==
 +
 
[[Category: S2 Cookbook]]
 
[[Category: S2 Cookbook]]

Revision as of 08:53, 17 June 2010

All S2 code operates within the context of a Page class.

Also see these chapters for specific page examples:

Get the current Page

Use the get_page() function to get the current page.

Get the current page's view type