Modify

Opened 4 years ago

Last modified 4 years ago

#8232 assigned enhancement

PATCH: Last topic request handler for last topic bookmarking.

Reported by: lucid Owned by: Blackhex
Priority: low Component: DiscussionPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.12

Description

In some forums it would be useful to be able to link to the latest (most recently founded) topic.

For example if forum 3 is dedicated to discussing the events of the month; each month one topic is created. Bookmarking the following link would always take you to the latest topic about the current months events:

www.example.com/Trac/discussion/forum/3/latest-topic

Attachments (1)

RequestLatestTopic.py (1.8 KB) - added by lucid 4 years ago.
request handler for latest-topic

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by lucid

request handler for latest-topic

comment:1 Changed 4 years ago by Blackhex

  • Priority changed from normal to low
  • Severity changed from normal to minor
  • Status changed from new to assigned
  • Type changed from defect to enhancement

comment:2 follow-up: Changed 4 years ago by Blackhex

  • Summary changed from RFE: Allow linking to the latest topic in a forum to PATCH: Last topic request handler for last topic bookmarking.

I haven't decided yet if this should be core part of the plugin and if the request handler should be separated component or part of DiscussionCore component. I'll keep this ticket open as a patch ticket. Users needing this feature can just simply install this patch.

On the other hand I've added two new wiki link macros [last-forum:<group_id>] and [last-topic:<forum-id>] allowing to link to the last forum and topic on the wiki.

comment:3 in reply to: ↑ 2 Changed 4 years ago by lucid

Replying to Blackhex:

if the request handler should be separated component or part of DiscussionCore component.

I guess there's no need for a separate component. That was just easier to test and apply for me.

On the other hand I've added two new wiki link macros [last-forum:<group_id>] and [last-topic:<forum-id>] allowing to link to the last forum and topic on the wiki.

I considered doing that instead, but I wanted to be able to bookmark such a link, and as far as I know that's not possible with wiki link macros, right?

But if you include these and not the request handlers that's probably good enough for me. So feel free to close this.

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.