Skip to content

About

Example Blueprint Module for Joomla 4.4 and newer

Resources

Stars

7 stars

Watchers

2 watching

Forks

Latest commit

 

History

69 Commits

Folders and files

Repository files navigation

NXD BluePrint Example Frontend Module for Joomla! 4.x / 5.x / 6.x

This is a simple example frontend module for Joomla! 4.x / 5.x / 6.x. It shows Joomla! Content. This module can be used as Blueprint.

Features

  • New Joomla! Module Structure Example Code
  • Example Code for WebAssets (JS / ES6 Modules / CSS)
  • Example Code for Language Files
  • Example Code for Frontend Ajax Request
  • Use Composer to set up and deploy the module

Configuration / Usage

Setup using Composer

  1. Clone the repository
  2. Run composer setup by typing composer run-script setup in a new terminal window to rename the module and set up the module
  3. Run composer deploy [mod_name] by typing composer run script deploy [mod_name] in a new terminal window where the name is your module name previously defined in the setup
  4. Optional: Copy the module folder and create a new Project in your IDE
  5. Optional: Install the module via Joomla! Extension Manager

Setup using manual Method via Search and Replace

Module Information

  1. Search & Replace all occurrences of mod_blueprint with your module name
  2. Search & Replace all occurrences of BluePrint with your module title (used for namespacing & naming in Language files)
  3. Search & Replace all occurrences of blueprint with your module name in lowercase
  4. Search & Replace all occurrences of BLUEPRINT with your module name in uppercase

Creator Information

  1. Search & Replace all occurrences of [CREATOR-COMPANY] with your Company's Name
  2. Search & Replace all occurrences of [CREATOR-URL] with your Company's URL
  3. Search & Replace all occurrences of [CREATOR-FULLNAME] with your Name
  4. Search & Replace all occurrences of [CREATOR-EMAIL] with your Email
  5. Search & Replace all occurrences of [CREATED-DATE] with the current date
  6. Search & Replace all occurrences of [CREATED-YEAR] with your Copyright
  7. Search & Replace all occurrences of [EXTENSION-VERSION] with the current version

Namespacing & File Renaming

  1. Search & Replace all occurrences of NXD with your Company's ID (used for namespacing)
  2. Rename mod_blueprint.xml to your module name (e.g. mod_example.xml)
  3. Rename the Language File language/en-GB/en-GB.mod_blueprint.ini to your module name (e.g. en-GB.mod_example.ini)
  4. 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)
  5. Rename the Helper File src/Helper/BluePrintHelper.php to your module name (e.g. src/Helper/ExampleHelper.php)
  6. Rename the Media Folder media/mod_blueprint to your module name (e.g. media/mod_example)

Build your Module

After the setup has been done, you are good to go and can modify the module to your needs. Your module has been created within the customized directory. Go ahead and do your thing!

Deployment

Deployment via Composer

After the Setup process is done, you can run composer deploy [mod_name] by typing composer run script deploy [mod_name] in a new terminal window where the name is your module name previously defined in the setup.

Manual Deployment

  • 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

About

Example Blueprint Module for Joomla 4.4 and newer

Resources

Stars

7 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages