Page MenuHomeWrite.as

Support user-generated blog index templates
Open, Waiting, NormalPublic

Description

Overview

Enable users to supply a custom template file for more advanced publication layouts.

Use Case

Some publishers may want a non-standard home page that pulls in multiple streams of posts.

Users

#fight_back_news

Dependencies

  • T821 for creating and editing the landing page template
  • T813 for querying different post feeds
  • T810 so users only need to develop templates that show content -- not show content and manage posts.

Implementation

Provide a web-based editor for users to create templates in (T821). They'll define the body of the landing page:

{{define "content"}}
  <div id="featured">
    {{featuredPost}}
  </div>
  <div id="content">
    {{latestPosts}}
  </div>
  <div class="tagged">
    {{taggedPosts "category-here"}}
  </div>
{{end}}

latestPosts and taggedPosts would be the names of functions included in the final template, which make the corresponding queries (requires T813)