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.
[SOLVED] The Mystery of Button Preview Html
-
- Phoca Member
- Posts: 11
- Joined: 16 Aug 2015, 11:48
[SOLVED] The Mystery of Button Preview Html
Last edited by Gummarith on 18 Aug 2015, 20:38, edited 1 time in total.
-
- Phoca Hero
- Posts: 2857
- Joined: 28 Nov 2010, 17:20
Re: The Mystery of Button Preview Html
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
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
-
- Phoca Member
- Posts: 11
- Joined: 16 Aug 2015, 11:48
Re: The Mystery of Button Preview Html
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...
-
- Phoca Hero
- Posts: 2857
- Joined: 28 Nov 2010, 17:20
Re: The Mystery of Button Preview Html
html file? Looked inside of phoca download & found following, which could be what you meant?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...
components\com_phocadownload\site\views\category\tmpl\default_files.php > // pdbuttonpreview
regards, Christine
-
- Phoca Member
- Posts: 11
- Joined: 16 Aug 2015, 11:48
Re: The Mystery of Button Preview Html
Thanks a lot... It's there... This means I didn't understand the structure of this component.. Getting old.. 

- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [SOLVED] The Mystery of Button Preview Html
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
- 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