Page 1 of 1

Article - File List

Posted: Sun 14. Aug 2005, 01:38
by theajj
Can anyone out there help??

2 questions:

1. How do I change the layout of the article file list e.g. I want to put the file size in brackets??

2. Ho do I add additional file icons e.g. i want to add an image for a .pov file.

Thanks.

Re: Article - File List

Posted: Mon 15. Aug 2005, 09:34
by Paal
theajj wrote:Can anyone out there help??

2 questions:

1. How do I change the layout of the article file list e.g. I want to put the file size in brackets??

2. Ho do I add additional file icons e.g. i want to add an image for a .pov file.

Thanks.
Backup FIRST!

2.

OPEN include/inc_lib/general.inc.php

FIND

Code: Select all

		"mpeg" =>	"icon_vid.gif"	
(around 277 line)

CHANGE

Code: Select all

		"mpeg" =>	"icon_vid.gif",		"pov"  =>	"icon_pov.gif"
SAVE AND CLOSE

COPY icon_pov.gif to img/icons dir

and try the function.

Paul

Posted: Mon 15. Aug 2005, 12:37
by theajj
Great thanks - I'll give it a go.

Posted: Sun 28. Aug 2005, 14:49
by Tooms
Anyone knows the answer to the first question?

Posted: Mon 29. Aug 2005, 12:54
by Tooms
No idea? :(

Posted: Mon 29. Aug 2005, 13:56
by Paal
Tooms wrote:No idea? :(
I do not understand the question...
1. How do I change the layout of the article file list e.g. I want to put the file size in brackets??
If use the file-list content part, the result(s) eg.:

content title
subtitle
ext.icon description (102.50 KB)
filename.ext

Content-part hacking

Posted: Thu 1. Sep 2005, 16:08
by olleolleolle
In the folder /include/inc_front/content/ you find PHP files that make all the Content Parts.

1. Find ID of the content-part you want to work on
2. Do that by Viewing Source of the SELECT element's OPTION parts, and look at their VALUEs. They will be the IDs you are looking for.
3. Open the PHP source files of that content part in the aforementioned directory.
4. Happy hacking.

Posted: Sat 3. Sep 2005, 23:18
by theajj
That's exactly what I wanted - thanks!

Adrian