Page 1 of 1

Change Label and Hide some FORM items

Posted: 05 Jul 2018, 17:42
by dnunez
Hello, sorry about my Ignorance but i started using Joomla and Phoca recently.
My question is about the form that is shown to users for uploading a document.
It is posible to change, for example, the "File Subject" text in the form?

And if i want to hide, for example, AUTHOR or AUTHOR EMAIL, it is posible?

Thank you very much!!
Regards
Diego

Re: Change Label and Hide some FORM items

Posted: 06 Jul 2018, 15:04
by Jan
Hi, the easiest way to change strings is to do in language file (com_phocadownload.ini in your language folder - in frontend - root/languages/en-GB/ or your language if it is different to English)

And the easiest way how to hide the forms is to do per CSS :idea:

Jan

Re: Change Label and Hide some FORM items

Posted: 06 Jul 2018, 16:59
by rogerco
Assuming you are using a current version of Joomla rather than editing the language file in phocadownload then it is better to set language overrides (backend top menu Extensions | Languages | Overrides) where you can override the value of the text for any language string using the search function to find it. That way any future update to the PD language files will not overwrite your custom values.

Re: Change Label and Hide some FORM items

Posted: 06 Jul 2018, 17:42
by christine
@rogerco,

thank you for your assistance 8)

Hi Diego,

to hide some fields, it's recommended to use so called template override. Months ago, we had similar thread:
viewtopic.php?f=31&p=150783#p150783

see last post: the relevant file would be: components\com_phocadownload\site\views\user\tmpl\default_files.php
Which lines should be removed, depends which field you want to hide.

some info: https://www.ostraining.com/blog/joomla/overrides/

Kind regards
Christine

Re: Change Label and Hide some FORM items

Posted: 09 Jul 2018, 00:07
by dnunez
Thank you very much guys.
It worked!!!
Nice Work to all of you!!
Regards
DIego