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 »

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: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: setting file list view attributes

Post by Jan »

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 »

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: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: setting file list view attributes

Post by Jan »

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 »

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: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: setting file list view attributes

Post by Jan »

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 »

Hi Jan,
how should i do if i wanted for example to add the filesize?
Luca
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: setting file list view attributes

Post by Jan »

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