TIPS - Custom fields and the law of relativity

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.

Alexandre ELISÉ

Développeur #PHP spécialiste #Joomla! Si mon travail vous a plu n'hésitez pas à laisser votre avis sur Google Reviews. Si mes articles vous ont été utiles vous pouvez me le dire avec Paypal.me ça m'encourage à continuer et me permet de savoir que vous apprecier le contenu. Sinon vous pouvez toujours m'envoyer un email pour me faire part de vos suggestions.