setting file list view attributes

Phoca Download - download manager
lmilitel
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 01 Mar 2021, 16:19

setting file list view attributes

Post by lmilitel » 01 Mar 2021, 16:29

Hi, i would like to change filelist view, adding some information. It's possible for category view, not for file list view.
It seems i can't do it setting parameters. Any suggestgions?

Thanks

Luca

Below the link to see current version layout

https://imgur.com/a/V2mn5FX

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43759
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: setting file list view attributes

Post by Jan » 02 Mar 2021, 14:52

Hi, do you use component or plugin?

Jan
If you find Phoca extensions useful, please support the project

lmilitel
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 01 Mar 2021, 16:19

Re: setting file list view attributes

Post by lmilitel » 02 Mar 2021, 18:42

Hi Jan,
i'm using a syntax as this (after installing the phoca plugin button):

{phocadownload view=filelist|id=1|limit=100}

inside a K2 item.
I would like to add more information than only the description, for example the filesize.

Thanks

Luca

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43759
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: setting file list view attributes

Post by Jan » 03 Mar 2021, 15:06

Hi, the plugin only have this output, so it needs to be customized in CSS or directly in the code :idea:

Jan
If you find Phoca extensions useful, please support the project

lmilitel
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 01 Mar 2021, 16:19

Re: setting file list view attributes

Post by lmilitel » 04 Mar 2021, 12:08

Hi Jan,
could you please send me an example of this kind of modifications in CSS?
I never did it.

Thanks

Luca

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43759
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: setting file list view attributes

Post by Jan » 09 Mar 2021, 18:24

Hi, I don't have any such example, it is just about modification the HTML and CSS to fit your needs, so hard to give you some HTML/CSS example of your preferred design :idea:

Jan
If you find Phoca extensions useful, please support the project

lmilitel
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 01 Mar 2021, 16:19

Re: setting file list view attributes

Post by lmilitel » 10 Mar 2021, 13:20

Hi Jan,
how should i do if i wanted for example to add the filesize?
Luca

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43759
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: setting file list view attributes

Post by Jan » 10 Mar 2021, 14:20

Hi,

- you need to load the filesize from database or get the filesize from the file (reading the size from full path file)
- then you just echo this value where you need (if in plugin, then directly in plugin code, if in component than you can e.g. use template override in your template so the changes you have made will be not lost when updating)

Jan
If you find Phoca extensions useful, please support the project

Post Reply