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)

Change History (1)

comment:1 Changed 18 years ago by John Hampton

Resolution: worksforme
Status: newclosed

This is actually already possible. Simply pass the post_size parameter to the BlogShow macro. The value is the number of bytes that should be shown.

[[BlogShow(blog,post_size=15,num_posts=3)]]

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Hampton.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.