Opened 14 years ago
Closed 9 years 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)
Change History (9)
Changed 14 years ago by
Attachment: | RequestLatestTopic.py added |
---|
comment:1 Changed 14 years ago by
Priority: | normal → low |
---|---|
Severity: | normal → minor |
Status: | new → assigned |
Type: | defect → enhancement |
comment:2 follow-up: 3 Changed 14 years ago by
Summary: | RFE: Allow linking to the latest topic in a forum → 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 Changed 14 years ago by
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:5 follow-up: 6 Changed 10 years ago by
Cc: | Ryan J Ollos added; anonymous removed |
---|---|
Keywords: | permalink added |
Owner: | changed from Radek Bartoň to Steffen Hoffmann |
Trac Release: | 0.12 → 0.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 follow-up: 7 Changed 10 years ago by
Replying to hasienda:
Feedback welcome, especially on phrasing of English link label and title.
That looks good to me.
comment:7 Changed 10 years ago by
comment:8 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
request handler for latest-topic