Powerful relative time feature of custom fields
Hello super joomlers!

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.

  1. Create two custom fields of type calendar: start-date and end-date
  2. Set default for start date by typing now
  3. Set default for en d date by typing now +3 days

That's it change and experiment with other values it should work.

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 subcategory

WHAT ?

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"
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.

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.

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

Page 1 of 3

Get the newsletter

Super Joomlers! Get the most out of Joomla!
We hate spam as much as you do and we will not send you email without your prior consent. You can unsubscribe / resubscribe any time you want.