Modify

Opened 8 years ago

Last modified 18 months ago

#892 assigned enhancement

RFE: ViewTopic macro should be able to start a topic

Reported by: datenimperator Owned by: Blackhex
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: CITY Trac Release: 0.10

Description

Currently, the ViewTopic macro just prints "No discussion for this page created." when such a discussion doesn't exist. I'd like it to add a link "Start it here." or else to open the "add discussion" page with the topic field prefilled (and maybe, readonly?)

Like this, I could use the forum plugin as a comment-addon for the blog functionality.

Attachments (0)

Change History (5)

comment:1 Changed 8 years ago by Blackhex

  • Status changed from new to assigned

If you mean redirecting to discussion section to "Add topic" form it can be done. But if you mean embending whole form in wiki page same as message list, it can be problem. I think that I was trying that but without success. One part of problem is that Trac doesn't support POST method forms in wiki macros. That is reason why ViewTopic macro has limited size of inserted post bodies.

comment:2 Changed 8 years ago by datenimperator

I think it should just display a link to the "Add topic" form, with the topic title prefilled to the current wiki page name.

comment:3 Changed 8 years ago by Blackhex

I'd like to implement this more generally. There should be possibility to specify what is displayed when user does not have permission to see discussions and what user see when that permission has but there is no topic created. Only I can't decide is how this could be specified. Possible solution are:

  • Specify wiki pages for this e. g. DiscussionDenied and DiscussionMissing and display their content which would be created during environment upgrade.
  • Previous plus that names of that pages would be specified in trac.ini and it is up to admin to create them.
  • Use fixed templates for this so that amin would edit them if necesary
  • Previous plus selection of template in trac.ini
  • Use some text files with html code which are displayed and specify path to that files in trac.in
  • Maybe some others... ?

What would you consider as the best solution?

comment:4 Changed 7 years ago by Blackhex

  • Summary changed from ViewTopic macro should be able to start a topic to RFE: ViewTopic macro should be able to start a topic

comment:5 Changed 21 months ago by anonymous

  • Cc CITY added; anonymous removed

Add Comment

Modify Ticket

Action
as assigned The owner will remain Blackhex.
Author


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

 
Note: See TracTickets for help on using tickets.