Edgewall Software

Ticket #2781 (new enhancement)

Opened 3 years ago

Last modified 4 months ago

can't see attachments when editing a page

Reported by: amalik@… Owned by: jonas
Priority: normal Milestone: 2.0
Component: wiki system Version: 0.11
Severity: minor Keywords: editing wiki attachments jquery interface
Cc:

Description

It would be nice to be able to see what attachments are on the page when editing it. I often have to link to an attachment from with the wiki text but may not know the exact file name (or remember if its attached yet).

Taking it a step further, it would be good to be able to add attachments when editing a page.

Attachments

Change History

in reply to: ↑ description   Changed 21 months ago by cboos

  • keywords jquery interface added
  • milestone set to 2.0

Replying to amalik@opencrowd.com:

It would be nice to be able to see what attachments are on the page when editing it. I often have to link to an attachment from with the wiki text but may not know the exact file name (or remember if its attached yet).

That would probably do no harm. There could even be a smart way to directly insert an attachment link into the textarea, ideally by dragging an attachment link and dropping it into the textarea...

Taking it a step further, it would be good to be able to add attachments when editing a page.

Well, this has the same negative implications with the preview that were discussed for the new ticket.

  Changed 4 months ago by adnan@…

  • version changed from 0.9.4 to 0.11

For a quick fix on Trac 0.11 add the following lines:

trac/wiki/web_ui.py:

411a412

context = Context.from_request(req, page.resource)

416a418

'attachments': AttachmentModule?(self.env).attachment_data(context),

trac/wiki/templates/wiki_edit.html:

89a90

${list_of_attachments(attachments, compact=True)}

This will add the list of attachments (same as the one on the view wiki page) to the edit wiki page.

Add/Change #2781 (can't see attachments when editing a page)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from jonas. Next status will be 'new'
The owner will change from jonas to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.