gc2gh / django-newsroom

Automatically exported from code.google.com/p/django-newsroom
Other
0 stars 0 forks source link

Site sections #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Josh recommended the idea of sections...

By sections, I mean a collection of stories/media at a specific URL. For
example, http://berkeley.news21.com/economy/ housing-crisis/ would be a
section (as would simply /economy/). 

It would be nice to be able to define sections arbitrarily in the CMS.
Sections should comprise multiple categories of stories. So, I can have a
stories in the archives categorized/taggged as “housing,” “banking,”
“mortgages” and then later aggregate them under the newly created
/economy/housing-crisis/ section. Other than similar URLs, the /economy/ 
and /economy/housing-crisis/ don’t necessarily have to have  a
relationship. It is dependent on what categories the Web editor associates
with them.

Access to these sections should be automatic at the predefined URL. So,
/economy/housing-crisis/ would return a list of related headlines to
whatever default template handles the section view. 

Sections should also have a default template that can be overridden in the
admin with another file in the template directory of the CMS. The new
template would have access to all the view variables as the default. 

It would also be nice to be able to access arbitrary section content by
slug from anywhere in the templates. For example, on the /economy/ page, it
would be cool to be able to put in a “Housing Crisis” sidebar that pulls in
the appropriate content with something like   {% for get_stories_by_
section economy/housing-crisis as story %} and then iterate through a list
of the latest stories. 

Original issue reported on code.google.com by jgty...@gmail.com on 4 Apr 2009 at 9:40

GoogleCodeExporter commented 8 years ago
John, we should probably start a SectionsRFC wiki for this to outline the 
API/spec and how it will fit into django-
newsroom.

Original comment by mand...@gmail.com on 6 Apr 2009 at 6:06

GoogleCodeExporter commented 8 years ago
An RFC on this topic can be found here:

http://code.google.com/p/django-newsroom/wiki/SectionsRFC

Original comment by jgty...@gmail.com on 7 Apr 2009 at 6:08

GoogleCodeExporter commented 8 years ago

Original comment by mand...@gmail.com on 7 Apr 2009 at 6:31

GoogleCodeExporter commented 8 years ago

Original comment by jgty...@gmail.com on 15 Apr 2009 at 5:07