Modify

Opened 17 months ago

Last modified 17 months ago

#11156 new enhancement

Filter 'about' post from BlogList macro output

Reported by: hasienda Owned by: osimons
Priority: normal Component: FullBlogPlugin
Severity: normal Keywords: presentation
Cc: rjollos 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 (4)

comment:1 follow-up: Changed 17 months ago by osimons

Just back-date the timestamp in the database?

comment:2 Changed 17 months ago by hasienda

  • tracfullblog/macros.py

    a b  
    8686        recent = recent or len(all_posts) 
    8787        count = 0 
    8888        for post in all_posts: 
     89            if post[0] == 'about': 
     90                continue 
    8991            if count == recent: 
    9092                break 
    9193            bp = BlogPost(self.env, post[0]) 

comment:3 in reply to: ↑ 1 Changed 17 months ago by hasienda

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 17 months ago by osimons

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?

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.