This is a simple example module for Joomla! 4.x / 5.x. It shows Joomla! Content. This module can be used as Blueprint.
- New Joomla! Module Structure Example Code
- Example Code for WebAssets
- Example Code for Language Files
- Use Composer to setup the module
- Clone the repository
- Run
composer setup
to rename the module and set up the module - Install the module via Joomla! Extension Manager
- Search & Replace all occurrences of
mod_blueprint
with your module name - Search & Replace all occurrences of
BluePrint
with your module title (used for namespacing & naming in Language files) - Search & Replace all occurrences of
blueprint
with your module name in lowercase - Search & Replace all occurrences of
BLUEPRINT
with your module name in uppercase
- Search & Replace all occurrences of
[CREATOR-COMPANY]
with your Company's Name - Search & Replace all occurrences of
[CREATOR-URL]
with your Company's URL - Search & Replace all occurrences of
[CREATOR-FULLNAME]
with your Name - Search & Replace all occurrences of
[CREATOR-EMAIL]
with your Email - Search & Replace all occurrences of
[CREATED-DATE]
with the current date - Search & Replace all occurrences of
[CREATED-YEAR]
with your Copyright - Search & Replace all occurrences of
[EXTENSION-VERSION]
with the current version
- Search & Replace all occurrences of
NXD
with your Company's ID (used for namespacing) - Rename mod_blueprint.xml to your module name (e.g. mod_example.xml)
- Rename the Language File language/en-GB/en-GB.mod_blueprint.ini to your module name (e.g. en-GB.mod_example.ini)
- Rename the Language File language/en-GB/en-GB.mod_blueprint.sys.ini to your module name (e.g. en-GB.mod_example.sys.ini)
- Rename the Helper File src/Helper/BluePrintHelper.php to your module name (e.g. src/Helper/ExampleHelper.php)
- Rename the Media Folder media/mod_blueprint to your module name (e.g. media/mod_example)
After the setup has been done you are good to go and can modifiy the module to your needs. Go ahead and do your thing!
not yet available
- Delete composer.json, composer.lock, the vendor and .git folder as they are not needed for the module
- Zip the module and install it via Joomla! Extension Manager