3 steps to use Joomla! 4 webservices in Docker

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-docker j4x
  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.

Relax, you are our guest : 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

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

How to use modular SQL in your XML manifest

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.

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.

Page 1 of 3