Advertisement

How to automatically insert Joomla version ?

For Joomla! 5.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
User avatar
secarica
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Sun Mar 04, 2012 12:33 am
Location: Romania, Earth
Contact:

How to automatically insert Joomla version ?

Post by secarica » Sat Jan 25, 2025 12:25 pm

Supposing a text like "Welcome to Joomla! version x.x.x", I want to automate the x.x.x so that do not have to enter manually the numbers at each version upgrade. What code should be inserted at that point ? I am using Sourcerer, so direct inline coding is possible.

Advertisement
User avatar
PhilTaylor-Prazgod
Joomla! Ace
Joomla! Ace
Posts: 1414
Joined: Sat Aug 20, 2005 12:32 pm
Location: Jersey, Channel Islands
Contact:

Re: How to automatically insert Joomla version ?

Post by PhilTaylor-Prazgod » Sun Jan 26, 2025 3:05 pm

Code: Select all

echo (new \Joomla\CMS\Version)->getShortVersion();

Advertisement

Post Reply

Return to “Joomla! 5.x Coding”