Customising File Details Display

Phoca Download - download manager
latorreinfo
Phoca Member
Phoca Member
Posts: 11
Joined: 06 Jun 2020, 18:09

Customising File Details Display

Post by latorreinfo »

1. We have used "YES (modal box)" for the display detail button setting.

For some reason the setting "YES (standard popup window)" setting does not display a button???????

In the modal box is it possible to hide the download button - we have modified download to work in-line so the file displays in the modal box. This isnt good given the size of the modal box, so we'd prefer them users to close the window and then use the download button on the file list

2. A secondary question - is it possible to remove the hyperlink for the file name / description so that users can only download via the download button and not by clicking on the filename

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

Re: Customising File Details Display

Post by Jan »

Hi,

1) which button do you exactly mean, when setting "standard popup window", all buttons are displayed:

Image

You can override the detail view the same way like all views in Joomla - with template override:
components\com_phocadownload\views\file\tmpl\default.php (or its Bootstrap alternative)

2) This even needs to be done per override:
components\com_phocadownload\views\category\tmpl\default.php

Jan
If you find Phoca extensions useful, please support the project
latorreinfo
Phoca Member
Phoca Member
Posts: 11
Joined: 06 Jun 2020, 18:09

Re: Customising File Details Display

Post by latorreinfo »

Jan

It was the download button. Your advice re template overrides which I haven't used before have enabled me to achieve what I want

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

Re: Customising File Details Display

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Jbdomingos
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 08 Sep 2021, 04:00

Re: Customising File Details Display

Post by Jbdomingos »

Hi, the same happens to me, when setting "YES (standard popup window)" for the File Details Display, the details button dissapear in the front end. How to fix it?
Jbdomingos
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 08 Sep 2021, 04:00

Re: Customising File Details Display

Post by Jbdomingos »

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

Re: Customising File Details Display

Post by Jan »

Hi, are you sure, it is caused by setting the parameter? Does the file have set the file for preview in file settings?

Jan
If you find Phoca extensions useful, please support the project
Jbdomingos
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 08 Sep 2021, 04:00

Re: Customising File Details Display

Post by Jbdomingos »

Yes, I'm sure and yes, the file is set for preview.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Customising File Details Display

Post by Jan »

And when you change the method for detail, it is displayed there?

Do you use some template override (some template which can override the component ouput)?

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