Sorry for being so quiet for so long. I'm back with a new present for you: How to load global language file from your Joomla! site in any of your custom extensions. Are you a Joomla! extension developer? You might have had, just like me, that same problem when coding your extension.
I more or less recently stumbled upon the "headless CMS" thing where the actual content is completely separated from the actions one can do to "manipulate" or "act on" the content using an API. I know that Webservices are coming in Joomla 4 hopefully. But I was wondering if a full fledge "headless CMS" might be the way to go to help Joomla! become popular again to more developers. To me, If more developers do more stuff for Joomla! core and contribute, the whole Joomla community will benefit from it.
I know, I know. Multi what? What is that entangled weird title? Fear not! Delicious meal is coming. Everything going be crystal clear soon. Bear with me. Since Joomla! 3.7 custom fields was merged into Joomla! core. Custom fields was originally a work from Allon Moritz (@laoneo). He decided to gave it to Joomla! community. Big thanks to him and all the Joomla! team and contributors. What you need to know is that core components like com_content (articles) support custom fields out-of-the-box. But how about third-party extensions that we as developers want to make? We want custom fields too for our extensions even more.
This time, I will show you a simple code snippet to copy paste in your template overrides of com_content (articles). For those of you who want to add custom fields in their favourite templates there are 2 snippets to add. Here they are.
If you are like me and like using the latest and greatest stuff, you might have tried to install Joomla! 4.x-dev on your computer. But maybe you had the same issue than I had. Either on frontend and backend modules won't show up. However no prominent error pops up. An SQL query to the rescue! Here it is:
UPDATE `#__modules` SET `publish_down` = '0000-00-00 00:00:00' WHERE 1=1;
UPDATE `#__content` SET `publish_down` = '0000-00-00 00:00:00' WHERE 1=1;
At first sight, the second query is not required. But just in case the articles won't show up, you can execute the second query. To do this you can use tools like phpMyAdmin, adminer, Sequel Pro, HeidiSql or MySQL Workbench. Take care super joomlers