google-code-export / django-forum

Automatically exported from code.google.com/p/django-forum
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Templatetags for django-forum #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here is various templatetags that would be useful for django-forum :

* {% latest_posts 5 as latest %} = return the last 5 posts in the context with 
the name "latest" %}
* {% latest_for_user user 10 as user_message %} = return the last 10 posts of 
user "user" in the 
context with the name "user_message" %}
* {% forums as forums %} = return a list of the forum in the context with the 
name forums

I will try to develop some of them and provide a patch.

Original issue reported on code.google.com by xphuture on 30 Oct 2008 at 12:29

GoogleCodeExporter commented 9 years ago
Did you ever end up developing any of these? They would be a very useful 
addition,
for example to list the latest posts on the homepage of a website or in it's 
sidebar.

Original comment by rwpoul...@gmail.com on 4 Dec 2008 at 9:09

GoogleCodeExporter commented 9 years ago
I have done two basic templatetags in SVN r35 to provide latest active POSTS and
latest active THREADS.

For usage see http://code.google.com/p/django-forum/wiki/RecentPostTemplateTags

On the todo list are similar tags for posts by user.

Original comment by rwpoul...@gmail.com on 30 Dec 2008 at 1:51

GoogleCodeExporter commented 9 years ago
Just put in SVN r36 which adds forum_latest_user_posts. See the wiki page for 
more.

I'm going to close this for now, if you have more tags to add please open a new 
ticket.

Original comment by rwpoul...@gmail.com on 30 Dec 2008 at 2:55