Modify ↓
Opened 18 years ago
Closed 18 years ago
#636 closed enhancement (worksforme)
Post Max Size for [[BlogShow]] macro
Reported by: | anonymous | Owned by: | John Hampton |
---|---|---|---|
Priority: | normal | Component: | TracBlogPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.9 |
Description
TracBlog is useful for many different things, one of which is having a news ticker (e.g. at madwifi.org), in essence being a summary of the blog. But for those it can make sense to have a different max size, a shorter one for the news box, a longer one for the actual blog page.
Attachments (0)
Note: See
TracTickets for help on using
tickets.
This is actually already possible. Simply pass the
post_size
parameter to theBlogShow
macro. The value is the number of bytes that should be shown.Note, that the
post_size
isn't absolute. It truncates at the end of the line on which it reached the limit.For the most part, anything that can be set on the config page, can also be passed to the macro. However, I haven't kept up the documentation on what the paramter names are. Hopefully I'll get a bit of time soon to update it.