Opened 18 years ago
Last modified 8 years 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 18 years ago by
Status: | new → assigned |
---|
comment:2 Changed 18 years ago by
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 18 years ago by
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 17 years ago by
Summary: | ViewTopic macro should be able to start a topic → RFE: ViewTopic macro should be able to start a topic |
---|
comment:5 Changed 12 years ago by
Cc: | CITY added; anonymous removed |
---|
comment:6 Changed 8 years ago by
Owner: | Radek Bartoň deleted |
---|---|
Status: | assigned → new |
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.