Skip to content

Commit

Permalink
Consolidated template and page-type docs
Browse files Browse the repository at this point in the history
- Removed duplicated content from page-type-templates (was more or less a variation of the content in templates.md)
- Removed built-in page-controls, which was a bit of a dumping ground for unconnected topics.
  Moved the majority to page-type-templates
- Removed all recipes from "sitetree" docs, since they were outdated or hacky (like grouping of records, or implementing custom *children() method on subclasses)
- Added pagination, escaping, base_tag, CurrentMember to template docs
- Removed default_parent docs from SiteTree, as this setting doesn't have any effect looking at core
  • Loading branch information
chillu committed Jun 27, 2012
1 parent 34a2ce2 commit 0b31234
Show file tree
Hide file tree
Showing 9 changed files with 467 additions and 834 deletions.
4 changes: 4 additions & 0 deletions docs/en/howto/pagination.md
Expand Up @@ -21,6 +21,10 @@ information.
return new PaginatedList(Page::get(), $this->request);
}

Note that the concept of "pages" used in pagination does not necessarily
mean that we're dealing with `Page` classes, its just a term to describe
a sub-collection of the list.

## Setting Up The Template

Now all that remains is to render this list into a template, along with pagination
Expand Down
347 changes: 0 additions & 347 deletions docs/en/reference/built-in-page-controls.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/en/reference/restfulservice.md
Expand Up @@ -167,7 +167,7 @@ Put something like this code in mysite/code/Page.php inside class Page_Controlle
}


Put something like this code in mysite/templates/Layout/HomePage.ss:
Put something like this code in `themes/<your-theme>/templates/Layout/HomePage.ss`:

:::ss
<h3>My Latest Del.icio.us Links</h3>
Expand Down
2 changes: 1 addition & 1 deletion docs/en/reference/siteconfig.md
@@ -1,4 +1,4 @@
# SiteConfig
# SiteConfig: Global database content

## Introduction

Expand Down

0 comments on commit 0b31234

Please sign in to comment.