Webservices Joomla! 4

Hello super joomlers!

Here is some commands to type in your terminal (on Linux or macOS and maybe Windows)

  1. Install latest Docker version on your machine
  2. git clone https://github.com/alexandreelise/j4x-dockerj4x
  3. cd j4x && chmod 700 develop && ./develop up --build

Note: Change to app custom image name to suit your needs or any revelant information. It's a proof of concept still in dev stage.

It's a Joomla! 4 unofficial docker setup. For more information follow this link.

Modular SQL in XML manifest  Joomla!

What's up super joomlers!

A new Joomla! core juicy trick just for you.

Did you know that you can use multiple sql files for the install process of your custom component?

They are red sequentially following the order in the xml manifest file of your component

Here is an example. Pay close attention to the install part.

The Power of the Guest

Hello super joomlers!

During your Joomla! journey, you will from time to time have a problem that can be solved by: "The Power of the Guest"

In fact it is the Guest access level, that is by default in Joomla! core


The Power of the Guest relies upon the fact that we can show elements of our Joomla! site like (menus, articles, modules, etc...) just to guests (not logged in users)

Therefore we can tailor an awesome user experience just for our guests.


Don't hesitate to use this functionality in your Joomla! sites.


That's all for today! Take care

[suggestion] 3 things to master as a Joomla! developer

Hello super joomlers!

As a Joomla! developer, in my opinion, there are 3 things to master:

Read more ...

[solution] Custom fields touch my heart

Hello super joomlers!

A joomler friend asked me: "how to add $this->item->jcfields in a core module like mod_articles_latest"

I accepted the challenge and share with this post the results to the Joomla! community, the joomlers family.

Get right into the code well commented and ready to use.


How to do it

Auto-login a Joomla! user using a PHP oneliner

Hello super joomlers!

A simple trick to login a Joomla! user by code rather than using a form.

Interested? Let's move on...

Read more ...

[solution] Show hidden content after Joomla! 4.x dev installation

Hello super joomlers!

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

[tips] Languages translation tags usable in custom fields

How to use custom fields in a multilingual context

Or how to translate some parts of your custom fields.

Read more ...

[tips] How to install Percona Server on Ubuntu Bionic in 5 steps

Hello Super Joomlers!

Today I will talk about percona server. An optimized and ultra high performance fork of MySQL to have enterprise level quality for free. Here is the 5 steps to install it on Ubuntu Bionic.

Read more ...

imagick PHP transparent background

Hello super joomlers!

After searching the web, the official website, php documentation and forums, I found, at last, the solution thanks to a friend's suggestion : "What if it was just the image background?"

Read more ...

[tips] Custom fields for non-developer

Hello super joomlers!

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.

Read more ...

[tips] Using custom fields by name

Hello super joomlers!

I know, I know. You will likely tell me that there will be conflicts by using custom fields by name because names are not necessarily unique.

But there is a solution for that. Using a naming convention for your custom fields. For example for article content custom fields you could use something like article-my-field.

Besides this convention. You can use this oneliner sample code rather than trying to memorize custom fields id by heart even if we might have written the ids down on a document it's a painful task.

Here is an attempt to simplify this task.

Read more ...

[tips] How to clone one branch only with git 2.21.0

How to clone one branch only with git 2.21.0 ?
For example to clone the  4.0-dev of the joomla-cms repository into the joomla4x directory

Read more ...

[tips] Direct access to a Joomla! plugin configuration using a link

Hello super joomlers!

Assuming your plugin was a system plugin named helloworld. (plg_system_helloworld)

The base structure of the link to access to your plugin directly from your Joomla! website backend would therefore be: 

Read more ...

[notes] Conferences notes about "clean code"

After watching many conferences about clean code on Youtube. I share with you what I have learned.

General rules about clean code:

  • do not abbrieviate
  • return early
  • do not use return
  • Keep classes and methods small
  • features separeted in methods
  • defensive controls exit early
  • one ident level

Read more ...

[tips] How to use a database to store your custom logs with Joomla! 3  JLog API

Hello super joomler!

An interesting API for developers wanting to monitor the behavior of their custom component or simply debug their extension analysing logs using SQL queries.

In this article I show you step by step how to achieve this database storage logger using a MySQL database.

MySQL database logger using Joomla! 3 JLog API