Ticket #5181 (closed enhancement: fixed)

Opened 11 months ago

Last modified 11 months ago

Download list as a macro?

Reported by: paranoidi Assigned to: Blackhex
Priority: normal Component: DownloadsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Hi,

This plugin is almost what I've been looking for. Only problem is that I'd like to have download list (almost) first thing in the front page. Would it be possible to make it as a macro and add a option to remove 'Downloads' section from the menu ?

Attachments

Change History

05/04/09 10:17:19 changed by Blackhex

  • status changed from new to assigned.

It's no problem to write such macro. You can disable Downloads section by disabling DownloadsWiki? component.

05/04/09 16:07:15 changed by paranoidi

Thanks for fast response. Doesn't seem to disappear by disabling DownloadsWiki from Admin->Plugins->TracDownloads.

05/04/09 16:16:47 changed by Blackhex

Sorry, my miststake. It's DownloadsCore component.

05/04/09 16:20:56 changed by Blackhex

Opps, but then actual downloading won't be working. I will have to add a new component which will serve download requests.

05/04/09 17:26:07 changed by Blackhex

  • status changed from assigned to closed.
  • resolution set to fixed.

Although not properly tested, I've implemented this for Trac 0.12 with r5657. There is a new component DownloadsDownloads which serves Downloads section and can be disabled. DownloadsCore component has to be enabled all time.

05/04/09 22:02:11 changed by paranoidi

Hmm, works almost right in 0.11 :) ... the macro does not work. Does 0.12 branch really contain 0.12 specific code?

05/04/09 22:03:26 changed by paranoidi

The macro is registered right, it just doesn't render anything.

05/04/09 22:47:43 changed by Blackhex

  • status changed from closed to reopened.
  • resolution deleted.

Only the DownloadsConsoleAdmin component shoudn't work on 0.11. Please check if egg in your plugins directory was properly packed with wiki-downloads-list.html template? Try to see generated HTML code if it's realy nothing or just empty table? Check debug log for any errors? I'll try it on 0.11 meanwhile.

05/04/09 22:55:05 changed by Blackhex

Works for me. I think that your problem will be visible_fields settings of trac.ini option. Now it's comma separated list.

05/05/09 15:33:06 changed by paranoidi

You're correct, seems to work fine. Thanks for fast implementation :)

05/06/09 17:12:40 changed by Blackhex

  • status changed from reopened to closed.
  • resolution set to fixed.

Ok, closing.


Add/Change #5181 (Download list as a macro?)




Change Properties
Action