Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#8143 closed enhancement (fixed)

Patch / RFE: RecentTopicsMacro

Reported by: lucid Owned by: Blackhex
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 4 years ago.
Standalone macro
RecentTopics.patch (8.6 KB) - added by lucid 4 years ago.
Patching the macro into the macro provider of the DiscussionPlugin

Download all attachments as: .zip

Change History (6)

comment:1 Changed 4 years ago by Blackhex

  • Status changed from new to assigned

Changed 4 years ago by lucid

Standalone macro

Changed 4 years ago by lucid

Patching the macro into the macro provider of the DiscussionPlugin

comment:2 Changed 4 years ago by Blackhex

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:3 Changed 4 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 4 years ago by Blackhex

Yes, the second option should work too.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.