Web Development
Code Snippets
A library of code samples for use in Joomla development.
5 guides
Guides
5 of 5- Check User Group By Group IDThere are many scenarios where you may need to check what group(s) a user is in. For example, I use this code to check if users are in my "Sponsors" group. If…
- Get Article Field Values From AnywhereThe following code snippets use Joomla's Database Classes to retrieve information about any article in the __content table of your Joomla database. Note that…
- Accessing Custom Article Fields From Template LayoutsSuppose you want to create a custom article option in Joomla 4/5. In this example, I'm creating two fields -> "showspecialtext" and "specialtext". The…
- Adding Custom Fields On Extension InstallCustom Fields may be useful in many Joomla extensions. They can be added by calling a custom script file upon an extension install or uninstall. The script…
- Accessing Custom User Field Values With PHPIn my guide on custom user fields in Joomla, I show how to add custom fields to a user's profile. By default, Joomla only allows you to use these fields to…