Categories, Tagging and Sections or how to beat a dead horse.

1 view
Skip to first unread message

Eric Moritz

unread,
Feb 26, 2009, 12:09:38 PM2/26/09
to Penny Press developers
So here's my latest scheme for how Categories, Tagging and Sections
could work.

Sections are hierarchical, gone are the idea of combined sections.
When viewing a section in the admin you will see it's children and be
able to order their display and limit the number of stories displayed
on the section front.

Sections are mapped to categories to build a story list. Sections with
child sections can inherit the categories of it's children to build a
story list.

Categories work as tag intersections so a "High School Sports"
category would be the tag intersection of: "high school", and
"sports" .

When a section has multiple categories, the stories are selected by
each tag intersection and the story list is a union of those
stories.

For instance a "Local Sports" section could have two categories, "High
School Sports"=tags:"high school", "sports", "local" and "Optimist
Sports"=tags:"optimist", "sports", "local". When the story list is
retrieved it retrieves stories that are tagged, ("high school" and
"sports" and "local") or ("optimist", "sports", "local")

Stories are mapped directly to tags which act like topics, "high
school", "sports", etc.

So here's an example of a section hierarchy:

Sports; cat:Sports:"sports"
|
+- Local; cat:Local Sports=tags:"sports", "local"; can inherit
cats:"High School Sports", "Optimist Sports"
| |
| -- High School; cat:High School Sports=tags:"sports",
"local", "high school"
| |
| -- Optimist; cat:Optimist Sports=tags:"sports", "local",
"optimist"
|
+- College; cat:College Sports=tags:"sports","college"

Eric

unread,
Feb 26, 2009, 12:20:58 PM2/26/09
to Penny Press developers
So basically I want to point out the roles of Sections, Categories and
Tags

Tags are for defining characteristics of a piece of content
Categories are for giving those characteristics meaning
Sections are for site structure

Glenn Franxman

unread,
Feb 27, 2009, 3:16:23 PM2/27/09
to django-pennypr...@googlegroups.com
So sections are the new combinedsections, categories are the new
sections, and tags are the new categories?

Eric

unread,
Feb 27, 2009, 4:53:56 PM2/27/09
to Penny Press developers

Not really, categories aren't viewable, they're just groups of tags

On Feb 27, 3:16 pm, Glenn Franxman <gfranx...@gmail.com> wrote:
> So sections are the new combinedsections, categories are the new
> sections, and tags are the new categories?
>
Reply all
Reply to author
Forward
0 new messages