Opened 17 years ago
Closed 17 years ago
#5181 closed enhancement (fixed)
Download list as a macro?
| Reported by: | paranoidi | Owned by: | Radek Bartoň | 
|---|---|---|---|
| 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 (0)
Change History (11)
comment:1 Changed 17 years ago by
| Status: | new → assigned | 
|---|
comment:2 Changed 17 years ago by
Thanks for fast response. Doesn't seem to disappear by disabling DownloadsWiki from Admin->Plugins->TracDownloads.
comment:4 Changed 17 years ago by
Opps, but then actual downloading won't be working. I will have to add a new component which will serve download requests.
comment:5 Changed 17 years ago by
| Resolution: | → fixed | 
|---|---|
| Status: | assigned → closed | 
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.
comment:6 Changed 17 years ago by
Hmm, works almost right in 0.11 :) ... the macro does not work. Does 0.12 branch really contain 0.12 specific code?
comment:8 Changed 17 years ago by
| Resolution: | fixed | 
|---|---|
| Status: | closed → reopened | 
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.
comment:9 Changed 17 years ago by
Works for me. I think that your problem will be visible_fields settings of trac.ini option. Now it's comma separated list.
comment:10 Changed 17 years ago by
You're correct, seems to work fine. Thanks for fast implementation :)



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