Image Modules
General Information
Image modules to be deployed can include full website projects not related to this CMS, such as WordPress and others.
- Image modules do not have auto-load functionalities like installing MySQL tables or similar.
- Important files to be present are
preview.jpg
,changelog.php
, andversion.php
in the image folder. Place the website content you want to deploy with that image module in thehtdocs
folder inside your image module. BugfishCMS will create an identifier file for the deployed image module in its deployed folder. You can look it up for investigation. These files are only created if you are using the administrator module to deploy the image module, which is highly recommended. - There are no controlling features for deployed website images inside the administrator module. These images are fully independent and can be served through dedicated Apache vhosts or by going to the folder inside the BugfishCMS structure, which is
_image/yourdeploymentname
. - Stick as close as possible to the example files found in our repository; they will show you how things work. Mind the comments.
See the example image module inside our GitHub repository to get insights about creating one yourself!
Files and Folders
./htdocs
: Put the Website to be deployed in here, this can be any website (unziped source) which you can imagine. (wordpress for example or more)preview.jpg
: Preview image for the Administrator Module and Store.changelog.php
: Document the module's changelog.version.php
: Contains versioning information.
Place website content in the htdocs
folder inside your image module.
Deployment Identifier File
An identifier file is created if you use the Administrator Module to deploy the image module (recommended).
Naming Conventions
- Max 20 characters for module name (
RNAME
). - Start name with "img" (e.g.,
imgwordpress
).
Limitations
Image modules: - Cannot alter/extend existing site modules or extensions. - Serve to deploy projects like WordPress independently. - No control features in the Administrator Module.
Installation
Method 1: Choose Module from Store
- Login to the Administrator Site Module.
- Go to the "Image" area in the "Extension" Section of the Administrator Module.
- Download the desired image module through the web interface in the "Store" Tab.
- Install the uploaded image template in the "Template" Tab.
- Navigate to your uploaded folder
example.domain/_image/FOLDERNAME/
with your web browser and follow the website images instruction or create necessary files depending on the deployed website image and its instructions. You can find the installed Image Website now in the "Installed" Tab of the Administrator Module.
Method 2: Upload in Administrator Module
- Open the Administrator Module in your web browser.
- Login as Administrator or privileged user.
- Go to the "Image" area in the "Extension" Section of the Administrator Module.
- Upload the image's .zip file in the "Upload" Tab.
- Install the uploaded image template in the "Template" Tab.
- Navigate to your uploaded folder
example.domain/_image/FOLDERNAME/
with your web browser and follow the website images instruction or create necessary files depending on the deployed website image and its instructions. You can find the installed Image Website now in the "Installed" Tab of the Administrator Module.
Method 3: Upload Manually
- Login to your web server with FTP/SFTP.
- Unpack the required Site Modules folder.
- Move the extracted folder containing the files like
version.php
to the_image
directory of the BugfishCMS installation. (like _image/MODNAME/version.php). Use only alphanumeric characters for the deployment folder. Official modules often use an underscore at the start, this is okay. - Navigate to your uploaded folder
example.domain/_image/FOLDERNAME/
with your web browser and follow the website images instruction or create necessary files depending on the deployed website image and its instructions. You can find the installed Image Website now in the "Installed" Tab of the Administrator Module.
Example Module
We have an example template image module for developers in our github repository in the _examples folder.
Module | Description |
---|---|
_tplimage | Website Image Module example to be investigated for developers! |
_tplanuko | Example Webite Image Module containing Anuko Time Tracking Software! |
_tplwordpress | Example Webite Image Module containing Wordpress |