My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 40: Templatetags for django-forum
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  rwpoul...@gmail.com
Closed:  Dec 2008


 
Reported by xphuture, Oct 29, 2008
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.
Dec 4, 2008
Project Member #1 rwpoul...@gmail.com
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.
Status: Accepted
Owner: rwpoulton
Labels: -Type-Defect Type-Enhancement
Dec 29, 2008
Project Member #2 rwpoul...@gmail.com
I have done two basic templatetags in SVN r35 to provide latest active POSTS and
latest active THREADS.

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

On the todo list are similar tags for posts by user.
Dec 29, 2008
Project Member #3 rwpoul...@gmail.com
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.
Status: Done

Powered by Google Project Hosting