PDA

View Full Version : Tab display for Files


eric4
12-07-04, 08:28 AM
Hi,

I have hundreds of small file downloads that I'd like to tab display according to file category. Has anyone modified the core files module to include a "file_category" field so you can display files according to the "file_category" as tabbed or flat?

Is there a way to modify the existing fields - Version, Task or Description to tab display files accordingly?

Thank you,
Eric

ajdonnison
12-07-04, 11:20 AM
I am not aware of anyone doing this work, and it does sound like it would be a worthwhile update.

eric4
13-07-04, 03:36 AM
I'm not sure how difficult this would be, first create a new table file_categories, then define the categories, and edit the file input and files display page.

Any project/PHP developers interested in doing this for a 'small' fee? If so, please email me at eric at eric4 dot com.

Thank you,
Eric

cyberhorse
15-07-04, 02:28 AM
It is done - see:

http://www.dotproject.net/index.php?name=PNphpBB2&file=viewtopic&p=2666#2666

eric4
17-07-04, 10:28 AM
Ivan,

Thanks for your help, and for this excellent patch!

Kind regards,
Eric :D

Grocer
19-10-04, 07:25 AM
I seem to have an issue with the file tabs and filtering. I have them working except for when I filter. When I filter by project it returns all the files for that project regardless of the tab selected. If I select a tab it returns all the files that are appropriate for that tab, but ignores the project filter. I need some help getting the filter and the tabs to "filter" together and not independently.

Thank you,
Ryan

jmckneel
20-10-04, 05:02 AM
How do you "apply" the patch? Everything else has gone smoothly, just getting hung up on this one little thing.

Does it have something to do with the "diff" command?

cyberhorse
24-10-04, 01:16 AM
grocer, it is quite likely this to be a bug. Please log it into mantis, and I'll have a look into it asap

jmckneel, sometimes I forget to make unified patches, so you may have to apply it as a normal patch. At this time, I would say it's a better choice to wait until version 2 is released.

sdalgleish
12-11-04, 10:43 PM
Hi cyberhorse,

Is there any chance of releasing this in a format other than the patch file? I'm more than happy to cut and paste as this functionaity is excellent - something that we really need

cyberhorse
13-11-04, 12:33 AM
If you propose something, I'll give it a try or at least consider it :) the main problem is that I use latest CVS all the time (even newer :)) and there are a lot more changes in the file module since then, so I can no longer separate this change cleanly and just give the file. Easiest thing would be to install new 1.0.2 somewhere, apply the patch, and copy the patched files to your installation - alternatively ask someone to do this for you.

sdalgleish
15-11-04, 08:02 PM
Crazyhorse,

All I'm really looking for is the instructions to make this change (or at least try!) in a format that I can alter the files manually.

cyberhorse
18-11-04, 01:06 AM
well, instructions how to change the file can be googled (search for applying patches or something similar). Sorry I can't provide more info or help - my devel machine is down, and I'm on the other side of the world from it :(