Modify

Opened 5 years ago

Closed 5 years ago

#5181 closed enhancement (fixed)

Download list as a macro?

Reported by: paranoidi Owned by: 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 (0)

Change History (11)

comment:1 Changed 5 years ago 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.

comment:2 Changed 5 years ago by paranoidi

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

comment:3 Changed 5 years ago by Blackhex

Sorry, my miststake. It's DownloadsCore component.

comment:4 Changed 5 years ago by Blackhex

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 5 years ago by Blackhex

  • Resolution set to fixed
  • Status changed from assigned to 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 5 years ago by paranoidi

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

comment:7 Changed 5 years ago by paranoidi

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

comment:8 Changed 5 years ago by Blackhex

  • Resolution fixed deleted
  • Status changed from closed to 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 5 years ago 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.

comment:10 Changed 5 years ago by paranoidi

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

comment:11 Changed 5 years ago by Blackhex

  • Resolution set to fixed
  • Status changed from reopened to closed

Ok, closing.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.