Article - File List

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
theajj
Posts: 24
Joined: Sun 31. Jul 2005, 21:42
Contact:

Article - File List

Post 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.
Paal
Posts: 204
Joined: Wed 6. Oct 2004, 19:54
Location: Budapest, Hungary
Contact:

Re: Article - File List

Post 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
theajj
Posts: 24
Joined: Sun 31. Jul 2005, 21:42
Contact:

Post by theajj »

Great thanks - I'll give it a go.
Tooms
Posts: 12
Joined: Sat 16. Jul 2005, 20:04

Post by Tooms »

Anyone knows the answer to the first question?
Tooms
Posts: 12
Joined: Sat 16. Jul 2005, 20:04

Post by Tooms »

No idea? :(
Paal
Posts: 204
Joined: Wed 6. Oct 2004, 19:54
Location: Budapest, Hungary
Contact:

Post 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
olleolleolle
Posts: 24
Joined: Mon 18. Apr 2005, 21:35
Location: Copenhagen, Denmark
Contact:

Content-part hacking

Post 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.
Olle Jonsson
olleolleolle
theajj
Posts: 24
Joined: Sun 31. Jul 2005, 21:42
Contact:

Post by theajj »

That's exactly what I wanted - thanks!

Adrian
Post Reply