Search
Other Articles Anywhere questions
Forum

Override string

Luis's Avatar Luis
Hi, is it possible to call a language override string using this component?

Regards
Peter van Westen's Avatar Peter van Westen ADMIN
Not sure why you think Articles Anywhere would be able to do something like that.
A language string has nothing to do with an article.

You could use Sourcerer to echo out a language string via PHP using the Joomla Text class.
Please post a rating at the Joomla! Extensions Directory
Luis's Avatar Luis
Do you think thats a good way to go?

Meaning, a template with a lot of Jtext for 7,8 languages?

Currently I use articles anywhere, with an article for each text, but It generates a lot of cache files.


Thanks
Peter van Westen's Avatar Peter van Westen ADMIN
Either use Sourcerer or ReReplacer Pro to place stuff like:
<?php echo Joomla\CMS\Language\Text::_('MY_LANGUAGE_STRING'); ?>

You could use ReReplacer Pro to make a custom shortcode for it. So you could do something like: {text MY_LANGUAGE_STRING}, or [[MY_LANGUAGE_STRING]], or whatever other shortcode syntax you want.
docs4.regularlabs.com/rereplacer/example...ic-plugin-style-tags
Please post a rating at the Joomla! Extensions Directory
Luis's Avatar Luis
But wouldn't that generate as many files as Articles Anywhere, with sourcerer I mean?
Peter van Westen's Avatar Peter van Westen ADMIN
What do you mean with files?
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Cache files… well that is all down to how you set up caching.
An article in 8 different languages will create and need 8 cache files. That's how caching works.
Please post a rating at the Joomla! Extensions Directory
Luis's Avatar Luis
Can you tell me if I go the Rereplacer PRO route, is compatible with YoothemePRO?

The bulk of the changes need to occur inside builder templates.

Regards
Peter van Westen's Avatar Peter van Westen ADMIN
I am not sure how things will function in YoothemePro.
You can try out the free version of ReReplacer to see if simple replacements will work.
If so, then replacing with php (using the Pro version) should also work.
Please post a rating at the Joomla! Extensions Directory
Luis's Avatar Luis
Unfortunatelly it does not.

I was thinking on using the PRO version(using the joomla language string tag), but if the free does not work...
Peter van Westen's Avatar Peter van Westen ADMIN
Then the Pro version won't be able to replace things either.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription