Page 1 of 1

[SOLVED] The Mystery of Button Preview Html

Posted: 16 Aug 2015, 12:03
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.

Re: The Mystery of Button Preview Html

Posted: 16 Aug 2015, 15:59
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

Re: The Mystery of Button Preview Html

Posted: 16 Aug 2015, 18:05
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...

Re: The Mystery of Button Preview Html

Posted: 18 Aug 2015, 19:18
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

Re: The Mystery of Button Preview Html

Posted: 18 Aug 2015, 20:36
by Gummarith
Thanks a lot... It's there... This means I didn't understand the structure of this component.. Getting old.. :x

Re: [SOLVED] The Mystery of Button Preview Html

Posted: 18 Aug 2015, 22:26
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