Alex.

Select your language

  • Français (Fr) FR
  • English (UK) EN
  • Start here
  • Services
  • Tech. Blog
    • Api Tech Blog
    • Custom Fields
    • Free Forever
  • About
  • Login
Contact Me
A l e x
Custom field related gold nuggets in Joomla. Share freely what I've learned with custom fields.
Custom fields touch my heart
Photo from Unsplash

SOLUTION - Custom fields touch my heart

Details
Written by: Mr Alexandre J-S William ELISÉ
Category: Custom field
Also available: Français (Fr)
Last Updated: 14 January 2023
Hits: 3342
  • custom fields
  • override

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

  • About the author:

    Hi! Alex here,

    Joomla Developer since 2009, focused on Web Services since 2017,

    first in Joomla! 3 with jBackend and com_api

    More recently Web Services in Joomla! 4.x core.

    I like paperback format books, challenging projects and defensive cybersecurity "Blue Team".

    You can:

    • Contact me
    • Subscribe to daily technical newsletter about Joomla (daily at 9h00 A.M UTC +00:00)
    • Add a star to the project that helped you the most. Sharing is caring.

Using custom fields by name
Photo from Unsplash

TIPS - Using custom fields by name

Details
Written by: Mr Alexandre J-S William ELISÉ
Category: Custom field
Also available: Français (Fr)
Last Updated: 14 January 2023
Hits: 2590
  • tips

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 - Using custom fields by name

  • About the author:

    Hi! Alex here,

    Joomla Developer since 2009, focused on Web Services since 2017,

    first in Joomla! 3 with jBackend and com_api

    More recently Web Services in Joomla! 4.x core.

    I like paperback format books, challenging projects and defensive cybersecurity "Blue Team".

    You can:

    • Contact me
    • Subscribe to daily technical newsletter about Joomla (daily at 9h00 A.M UTC +00:00)
    • Add a star to the project that helped you the most. Sharing is caring.

Custom fields for non-developer
Photo from Unsplash

TIPS - Custom fields for non-developer

Details
Written by: Mr Alexandre J-S William ELISÉ
Category: Custom field
Also available: Français (Fr)
Last Updated: 14 January 2023
Hits: 2570
  • custom fields

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 - Custom fields for non-developer

  • About the author:

    Hi! Alex here,

    Joomla Developer since 2009, focused on Web Services since 2017,

    first in Joomla! 3 with jBackend and com_api

    More recently Web Services in Joomla! 4.x core.

    I like paperback format books, challenging projects and defensive cybersecurity "Blue Team".

    You can:

    • Contact me
    • Subscribe to daily technical newsletter about Joomla (daily at 9h00 A.M UTC +00:00)
    • Add a star to the project that helped you the most. Sharing is caring.

Multi-context custom fields
Photo from Unsplash

EXTENSION - Multi-context custom fields

Details
Written by: Mr Alexandre J-S William ELISÉ
Category: Custom field
Also available: Français (Fr)
Last Updated: 14 January 2023
Hits: 2433
  • custom fields
  • core

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.

Read more: EXTENSION - Multi-context custom fields

  • About the author:

    Hi! Alex here,

    Joomla Developer since 2009, focused on Web Services since 2017,

    first in Joomla! 3 with jBackend and com_api

    More recently Web Services in Joomla! 4.x core.

    I like paperback format books, challenging projects and defensive cybersecurity "Blue Team".

    You can:

    • Contact me
    • Subscribe to daily technical newsletter about Joomla (daily at 9h00 A.M UTC +00:00)
    • Add a star to the project that helped you the most. Sharing is caring.

Languages translation strings usable in custom fields
Photo from Unsplash

TIPS - Languages translation strings usable in custom fields

Details
Written by: Mr Alexandre J-S William ELISÉ
Category: Custom field
Also available: Français (Fr)
Last Updated: 14 January 2023
Hits: 2348
  • custom fields

How to use custom fields in a multilingual context

Or how to translate some parts of your custom fields.

Read more: TIPS - Languages translation strings usable in custom fields

  • About the author:

    Hi! Alex here,

    Joomla Developer since 2009, focused on Web Services since 2017,

    first in Joomla! 3 with jBackend and com_api

    More recently Web Services in Joomla! 4.x core.

    I like paperback format books, challenging projects and defensive cybersecurity "Blue Team".

    You can:

    • Contact me
    • Subscribe to daily technical newsletter about Joomla (daily at 9h00 A.M UTC +00:00)
    • Add a star to the project that helped you the most. Sharing is caring.

Powerful relative time feature of custom fields
Photo by Jon Tyson on Unsplash

TIPS - Custom fields and the law of relativity

Details
Written by: Mr Alexandre J-S William ELISÉ
Category: Custom field
Also available: Français (Fr)
Last Updated: 14 January 2023
Hits: 1994
  • custom fields
  • tips
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.

  • About the author:

    Hi! Alex here,

    Joomla Developer since 2009, focused on Web Services since 2017,

    first in Joomla! 3 with jBackend and com_api

    More recently Web Services in Joomla! 4.x core.

    I like paperback format books, challenging projects and defensive cybersecurity "Blue Team".

    That's all for now. Have a delightful day.

Photo by Brooke Lark on Unsplash

EXTENSION - Dynamic Custom Fields Inference

Details
Written by: Mr Alexandre J-S William ELISÉ
Category: Custom field
Also available: Français (Fr)
Last Updated: 14 January 2023
Hits: 1832

Hello! Super Joomlers

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"

Download Contact Alexander
  • About the author:

    Hi! Alex here,

    Joomla Developer since 2009, focused on Web Services since 2017,

    first in Joomla! 3 with jBackend and com_api

    More recently Web Services in Joomla! 4.x core.

    I like paperback format books, challenging projects and defensive cybersecurity "Blue Team".

    That's all for now. Have a delightful day.

  • TIPS - Custom fields and the law of relativity
  • EXTENSION - Dynamic Custom Fields Inference
  • SOLUTION - Custom fields touch my heart
  • TIPS - Languages translation strings usable in custom fields
  • EXTENSION - Multi-context custom fields

Subscribe Now For Free

Please fill in this field
    Please fill in this field
    Please fill in this field
    I agree with the Terms and conditions
    ×
    and the Privacy policy
    ×
    Alex | Api Adept

    Your Website. Augmented.

    Get in touch
    • Contributions
    • Conference Room
    • Leave a message
    Useful Links
    • Login
    • My account
    • Personal Data Request
    • Confirm Personal Data Request
    • Extend Your Consent

    Select your language

    • Français (Fr) FR
    • English (UK) EN
    Our Address
    FRANCE

    Copyright © 2023 Alex | Api Adept. All Rights Reserved.
    • General Sales Terms And Conditions
    • General Terms Of Use
    • Legal Notice
    • License for extensions created for Joomla (AGPL-3.0-or-later)
    • Privacy Policy And Cookies
    Oooh...

    Leaving already?

    Contact Continue