[SOLVED] The Mystery of Button Preview Html

Phoca Download - download manager
Gummarith
Phoca Member
Phoca Member
Posts: 11
Joined: 16 Aug 2015, 11:48

[SOLVED] The Mystery of Button Preview Html

Post by Gummarith »

Hi,
does anybody know which html file in Phoca installation contains the "Button preview"? In all overriden html files there is no evidence of it... thanks a lot.
Last edited by Gummarith on 18 Aug 2015, 20:38, edited 1 time in total.
christine
Phoca Hero
Phoca Hero
Posts: 2857
Joined: 28 Nov 2010, 17:20

Re: The Mystery of Button Preview Html

Post by christine »

Hi,

Mystery? :?:
COM_PHOCADOWNLOAD_FIELD_DISPLAY_PREVIEW_BUTTON_DESC="Display or hide preview button"
COM_PHOCADOWNLOAD_FIELD_DISPLAY_PREVIEW_BUTTON_LABEL="Display Preview Button"

https://www.phoca.cz/documents/17-phoca- ... e-joomla-3
under: Preview Settings

regards, Christine
Gummarith
Phoca Member
Phoca Member
Posts: 11
Joined: 16 Aug 2015, 11:48

Re: The Mystery of Button Preview Html

Post by Gummarith »

Thanks but there's a misunderstanding... I need to change the a class of the "preview button" as I already did with the "download" one... that's why I must find the html file...
christine
Phoca Hero
Phoca Hero
Posts: 2857
Joined: 28 Nov 2010, 17:20

Re: The Mystery of Button Preview Html

Post by christine »

Gummarith wrote:Thanks but there's a misunderstanding... I need to change the a class of the "preview button" as I already did with the "download" one... that's why I must find the html file...
html file? Looked inside of phoca download & found following, which could be what you meant?

components\com_phocadownload\site\views\category\tmpl\default_files.php > // pdbuttonpreview

regards, Christine
Gummarith
Phoca Member
Phoca Member
Posts: 11
Joined: 16 Aug 2015, 11:48

Re: The Mystery of Button Preview Html

Post by Gummarith »

Thanks a lot... It's there... This means I didn't understand the structure of this component.. Getting old.. :x
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [SOLVED] The Mystery of Button Preview Html

Post by Jan »

Hi, every Phoca extension has the same structure like Joomla! - it is because of used MVC framework:

- models - where the data are loaded from database
- controllers - manages views and tasks
- views - displays the output of the current view:

components/com_phocadownload/views/category/tmpl/ there are all output files for category view (detail buttons are displayed in category view)

Anyway: buttons do have own class - and such you can disable/enable in Phoca Download administration - you can change it too.

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