
TIPS - How to use modular SQL in your XML manifest
- Written by: M. Alexandre ELISÉ
- Hits: 7065
Hello 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.

TIPS - How to install cryptography extension libsodium for php7.0.27
- Written by: M. Alexandre ELISÉ
- Hits: 1096
After trying to install this extension using pecl without much success,
I had the following message
Warning cannot install module.These settings must match.
To summarize, the pecl extension was not compiled with the right version of php.
The short tutorial I show you here works well and have been tested on
Ubuntu Server 16.04 LTS and php7.0.27.

SUGGESTION - Should Joomla! tend to become an unopiniated headless CMS? Maybe in Joomla! 4.5?
- Written by: M. Alexandre ELISÉ
- Hits: 1540
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.

EXTENSION - Multi-context custom fields
- Written by: M. Alexandre ELISÉ
- Hits: 1606
Hello super joomlers!
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.

SUGGESTION - 3 things to master as a Joomla! developer
- Written by: M. Alexandre ELISÉ
- Hits: 1894
Hello super joomlers!
As a Joomla! developer, in my opinion, there are 3 things to master:

TIPS - Custom fields and the law of relativity
- Written by: M. Alexandre ELISÉ
- Hits: 1267
Let's say you want to add a calendar custom field for some event (business, party, meeting)
and you want to have a default datetime for the event that is let's say 3 days from now.
The start date is now.For just 3 days it seems easy to calculate in your head,
but what if you don't want to bother do that and rather say something like:
Hey Joomla! I wanna 3 days from now please. Can you do that? Sure.
- Create two custom fields of type calendar: start-date and end-date
- Set default for start date by typing now
- Set default for en d date by typing now +3 days
That's it change and experiment with other values it should work.
CHALLENGE - Custom router rules
- Written by: M. Alexandre ELISÉ
- Hits: 991
WHY ?
This project start because of a challenge a joomler friend of mine posted in JUG Breizh on FB on February 16th 2021 The challenge was: Given an url structure like: /parent-category/subcat-a/article-1 /parent-category/subcat-a/article-2 /parent-category/subcat-c/article-7 How to make it work with urls like: /parent-category/article-1 /parent-category/article-2 /parent-category/article-7 In other words without the subcategoryWHAT ?
The answer to that delicious puzzle was custom router rules.HOW ?
TLDR; Custom router rules injected via a system plugin onAfterInitialise event just right after Joomla! started "booting"
NOTES - Conferences notes about "clean code"
- Written by: M. Alexandre ELISÉ
- Hits: 1750
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

EXTENSION - Dynamic Custom Fields Inference
- Written by: M. Alexandre ELISÉ
- Hits: 1024
The concept of "Dynamic Custom Field Inference"
Attempt to "infer" the type of custom field to dynamically create based on cached api
Dynamic What ? Just think of it as "Choco Fields!" Chocolate Custom Fields, synthaxic sugar around custom fields creation wrapped around cached api ice cream
Do you think it's April's Fool Day? Of course! But this extension is real.
Meet "Choco Fields"

TIPS - Languages translation strings usable in custom fields
- Written by: M. Alexandre ELISÉ
- Hits: 1642
How to use custom fields in a multilingual context
Or how to translate some parts of your custom fields.