Hi !

on my site i have several pages where people can upload files themselves. All the files have icons (pdf-icon, text-icon, etc..)

I want that all the icons are the same for all files on the same page .. so instead of the icon changing depending on what the file type is i want the icons to change depending on what page they are on..

Is that possible?

i tried this (in styles.css):

.page-name-of-page .file-icon { url ( /modules/file/icons/desiredicon.png)}

but nothing happened.. :(

Comments

vm’s picture

you have to look at the HTML to derive from it what you can utilize.

page-name-of-page - do you mean content type?

retsidketsid’s picture

Yes content type thats what i meant !

i tried all kinds of css but it didnt affect anything im guessing i need some sort of PHP but im very new to php so im very lost and have no idea what im doing

retsidketsid’s picture

Sorry no i dont mean content type i mean name of page..

i want that all files on same page show up with the same file icon (no matter what file type, pdf, jpg, etc) but then on another page they would all show up with a different icon.. if that makes sense

vm’s picture

I'd need to see the an active page with a file on it to try and work out what you may be able to do.