Page 1 of 1

Modification of JGLOBALS

Posted: Wed Sep 26, 2018 2:16 pm
by 1001lew
I'm trying to modify a couple of components and modules around the site and keep finding that the bit I want to change is a JGlobal. Does anybody know where the location of these is or how I can modify them?

Re: Modification of JGLOBALS

Posted: Fri Sep 28, 2018 11:10 am
by toivo
Do you mean a language string, starting with the text JGLOBAL, for example JGLOBAL_SORT_BY, or perhaps some variable in a third party extension or the Joomla core?

It would also help to know the context, where exactly in the code this 'JGlobal' appears.

Re: Modification of JGLOBALS

Posted: Fri Sep 28, 2018 12:06 pm
by 1001lew
So I wanted to adjust the Secret Key text in the login module to say two factor and it uses something like this to get the text:

Code: Select all

<label for="mod-login-password" class="element-invisible">
							<?php echo JText::_('JGLOBAL_PASSWORD'); ?>
						</label>
This is the one for the password though. I wanted to know where exactly the JGLOBAL here is so that I could change it sitewise rather than on a per-module basis.

Re: Modification of JGLOBALS

Posted: Fri Sep 28, 2018 12:37 pm
by SharkyKZ
Extensions -> Language(s) -> Overrides.

Re: Modification of JGLOBALS

Posted: Fri Sep 28, 2018 12:48 pm
by 1001lew
That simplifies things a lot thank you!