Change Label and Hide some FORM items

Phoca Download - download manager
dnunez
Phoca Member
Phoca Member
Posts: 11
Joined: 05 Jul 2018, 16:50

Change Label and Hide some FORM items

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change Label and Hide some FORM items

Post 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
If you find Phoca extensions useful, please support the project
rogerco
Phoca Member
Phoca Member
Posts: 47
Joined: 18 Sep 2011, 16:17

Re: Change Label and Hide some FORM items

Post 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.
christine
Phoca Hero
Phoca Hero
Posts: 2737
Joined: 28 Nov 2010, 17:20

Re: Change Label and Hide some FORM items

Post 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
dnunez
Phoca Member
Phoca Member
Posts: 11
Joined: 05 Jul 2018, 16:50

Re: Change Label and Hide some FORM items

Post by dnunez »

Thank you very much guys.
It worked!!!
Nice Work to all of you!!
Regards
DIego
Post Reply