Opened 5 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: Ryan J Ollos Trac Release: 1.0


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 Changed 5 years ago by osimons

Just back-date the timestamp in the database?

comment:2 Changed 5 years ago by Steffen Hoffmann

  • tracfullblog/

    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 5 years ago by Steffen Hoffmann

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 5 years 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?

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain osimons.

Add Comment

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

Note: See TracTickets for help on using tickets.