Opened 10 years ago

Closed 10 years ago

#549 closed defect (fixed)

Needs access to specify a wiki link to forum:topic:message

Reported by: chtaylo3@… Owned by: Blackhex
Priority: normal Component: DiscussionPlugin
Severity: trivial Keywords:
Cc: Trac Release: 0.9


It would be nice to be able to completly reference a message from outside the discussion forum with a wiki tag akin to something like [forum:<forum_id>->topic:<topic_id>->message:<message_id> <text>]

Attachments (0)

Change History (8)

comment:1 Changed 10 years ago by Blackhex

  • Status changed from new to assigned

I don't understang what do you exatly want. All message, topic and forum ids are uniqe within that type so you don't have to specifiy ie. in which forum and topic message you are referencig is.

comment:2 Changed 10 years ago by chtaylo3@…

so the first message from forum 1, topic 1 has a different message ID than the first message from forum 1 topic 2?

Also, trac's search isn't finding things inside the forum .. any ideas?

comment:3 Changed 10 years ago by Blackhex

Yes, all messages, topics and forums are each in one DB table so they have uniqe ids.

Text is searched in topics subject and body and in messages body. Forum names and descriptions are not searched.

comment:4 Changed 10 years ago by chtaylo3@…

Ok, so based on the screenshot, how would I link to one of the messages?

comment:5 Changed 10 years ago by Blackhex

If you mean attached screenshot on DiscussionPlugin wiki page it is very old (from athomas's plugin concept) and it is not relevant now. I can't delete it. Anyway there are tree macros [forum:<forum_id> <description>], [topic:<topic_id> <description>] and [message:<message_id> <description>] which creates link to apropriate forum, topic or message with <description> text as a link text content. If you don't specify macro's description link with forum, topic, message id as a content is created. All is (I hope clearly) described on DiscussionPlugin wiki page.

comment:6 Changed 10 years ago by chtaylo3@…

Yes, they discribe the syntax of the linking, but my question is how do I get the forum_id, topic_id, or message_id ??

Perhaps these things need to be displayed in the forums?

comment:7 Changed 10 years ago by Blackhex

From displayed page URL or ie. "Reply" links URL :-). Ie. http://localhost/discussion/5/3/1 means forum_id 5, topic_id 3 and message_id 1. I'll append id displaying in next changeset for you :-).

comment:8 Changed 10 years ago by Blackhex

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

Since all is clear now and forums, topics and messages IDs are now displayed I'm closing this ticket.

Add Comment

Modify Ticket

as closed The owner will remain Blackhex.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.