Modify

Opened 7 years ago

Closed 23 months ago

#8232 closed enhancement (fixed)

PATCH: Last topic request handler for last topic bookmarking.

Reported by: lucid Owned by: Steffen Hoffmann
Priority: low Component: DiscussionPlugin
Severity: minor Keywords: permalink
Cc: Ryan J Ollos Trac Release: 0.11

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 7 years ago.
request handler for latest-topic

Download all attachments as: .zip

Change History (9)

Changed 7 years ago by lucid

Attachment: RequestLatestTopic.py added

request handler for latest-topic

comment:1 Changed 7 years ago by Radek Bartoň

Priority: normallow
Severity: normalminor
Status: newassigned
Type: defectenhancement

comment:2 Changed 7 years ago by Radek Bartoň

Summary: RFE: Allow linking to the latest topic in a forumPATCH: 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 7 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.

comment:4 Changed 3 years ago by Steffen Hoffmann

In 14140:

DiscussionPlugin: Provide permalink to most recently founded topic, refs #8232.

The link can be copied from the bottom of any (non-empty) forum topic listing.

comment:5 Changed 3 years ago by Steffen Hoffmann

Cc: Ryan J Ollos added; anonymous removed
Keywords: permalink added
Owner: changed from Radek Bartoň to Steffen Hoffmann
Trac Release: 0.120.11

The solution has been integrated into DiscussionCore, using existing, recently reworked API methods.

Feedback welcome, especially on phrasing of English link label and title.

comment:6 in reply to:  5 ; Changed 3 years ago by Ryan J Ollos

Replying to hasienda:

Feedback welcome, especially on phrasing of English link label and title.

That looks good to me.

comment:7 in reply to:  6 Changed 3 years ago by Steffen Hoffmann

Replying to rjollos:

Replying to hasienda:

Feedback welcome, especially on phrasing of English link label and title.

That looks good to me.

Great, thanks.

comment:8 Changed 23 months ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Steffen Hoffmann.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.