Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#8143 closed enhancement (fixed)

Patch / RFE: RecentTopicsMacro

Reported by: lucid Owned by: Radek Bartoň
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

A macro that lists the most recently active discussion topics. Similar to Trac's own RecentChanges macro for recently changed wiki pages.


Examples:

This expands to a list of links to the 10 most recently active topics in forum 1:

RecentTopics(1, 10)

This expands to a list of links to the 3 most recently active topics (in any forum):

RecentTopics(, 3)

Attachments (2)

RecentTopicsMacro.py (3.2 KB) - added by lucid 14 years ago.
Standalone macro
RecentTopics.patch (8.6 KB) - added by lucid 14 years ago.
Patching the macro into the macro provider of the DiscussionPlugin

Download all attachments as: .zip

Change History (6)

comment:1 Changed 14 years ago by Radek Bartoň

Status: newassigned

Changed 14 years ago by lucid

Attachment: RecentTopicsMacro.py added

Standalone macro

Changed 14 years ago by lucid

Attachment: RecentTopics.patch added

Patching the macro into the macro provider of the DiscussionPlugin

comment:2 Changed 14 years ago by Radek Bartoň

Resolution: fixed
Status: assignedclosed

Revision 9640 applies the patch with some minor modifications and coding style unification.

comment:3 Changed 14 years ago by lucid

If I read your changes correctly, it's now possible to use RecentTopics(3) instead of RecentTopics(, 3)?

Nice, thanks.

comment:4 Changed 14 years ago by Radek Bartoň

Yes, the second option should work too.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Radek Bartoň.
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.