Opened 12 years ago
Last modified 5 years ago
#11156 new enhancement
Filter 'about' post from BlogList macro output
Reported by: | Steffen Hoffmann | Owned by: | osimons |
---|---|---|---|
Priority: | normal | Component: | FullBlogPlugin |
Severity: | normal | Keywords: | presentation |
Cc: | Trac Release: | 1.0 |
Description
The about blog post is special, and probably will often be set in the initial setup phase of a blog.
But if not, it is shown among all other posts, what is undesired IMHO. See current view in WikiStart. I do even expect it to descend according to its creation time as more blog posts appear. It should be hidden.
Attachments (0)
Change History (5)
comment:1 follow-up: 3 Changed 12 years ago by
comment:2 Changed 12 years ago by
-
tracfullblog/macros.py
a b 86 86 recent = recent or len(all_posts) 87 87 count = 0 88 88 for post in all_posts: 89 if post[0] == 'about': 90 continue 89 91 if count == recent: 90 92 break 91 93 bp = BlogPost(self.env, post[0])
comment:3 Changed 12 years ago by
Replying to osimons:
Just back-date the timestamp in the database?
Sure, this would be a work-around, but is the request that unreasonable?
comment:4 Changed 12 years ago by
Another alternative that I often use: a category named 'news' or 'frontpage' or whatever, and then the macro lists only a subset of posts. A 'frontpage' category also means you can easily remove old non-important news from appearing when they no longer have any relevance. Or, alternatively, have some posts stay longer than only dates originally would have allowed.
I'm still not convinced that i should filter a particular posts from all listings unconditionally. It is often the "welcome to..." blog post, and as such it is by no means trivial or unimportant.
A 'frontpage' or 'headlines' or 'news' special category that we move items in and out of as needed?
comment:5 Changed 5 years ago by
Cc: | Ryan J Ollos removed |
---|
Just back-date the timestamp in the database?