Modify

Opened 11 years ago

Last modified 3 months ago

#892 new enhancement

RFE: ViewTopic macro should be able to start a topic

Reported by: Christian Aust Owned by:
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 (6)

comment:1 Changed 11 years ago by Radek Bartoň

Status: newassigned

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 11 years ago by Christian Aust

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 10 years ago by Radek Bartoň

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 10 years ago by Radek Bartoň

Summary: ViewTopic macro should be able to start a topicRFE: ViewTopic macro should be able to start a topic

comment:5 Changed 4 years ago by anonymous

Cc: CITY added; anonymous removed

comment:6 Changed 3 months ago by Ryan J Ollos

Owner: Radek Bartoň deleted
Status: assignednew

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


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

 
Note: See TracTickets for help on using tickets.