Modify

Opened 15 years ago

Closed 15 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 15 years ago by Radek Bartoň

Status: newassigned

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

comment:2 Changed 15 years ago by paranoidi

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

comment:3 Changed 15 years ago by Radek Bartoň

Sorry, my miststake. It's DownloadsCore component.

comment:4 Changed 15 years ago by Radek Bartoň

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 15 years ago by Radek Bartoň

Resolution: fixed
Status: assignedclosed

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 15 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 15 years ago by paranoidi

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

comment:8 Changed 15 years ago by Radek Bartoň

Resolution: fixed
Status: closedreopened

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 15 years ago by Radek Bartoň

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 15 years ago by paranoidi

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

comment:11 Changed 15 years ago by Radek Bartoň

Resolution: fixed
Status: reopenedclosed

Ok, closing.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Radek Bartoň.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.