This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Created by Tom van der Laan - TLWebdesign with the help of ChatGPT 4 | |
# Created on 31st of August 2023 | |
# This script will search for files known to be placed in your joomla installation because of the Acymailing vulnerability. | |
# It is set up to work on a DirectAdmin installation by default. But when you run the script it will ask you for the file system search pattern. | |
# Leaving that empty will default it to directadmin structure. | |
# Common structures are (according to chatGPT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First upload your new fontawesome css files to /media/templates/site/cassiopeia_yourchildtemplatename/css | |
Then upload your new fontawesome webfont files to /media/templates/site/cassiopeia_yourchildtemplatename/webfonts | |
Then create a joomla.asset.json in your /templates/cassiopeia_yourchildtemplatename/ folder with these contents: | |
replace ###CHILDNAME### with your childtemplate name (the part after the underscore). | |
{ | |
"$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json", | |
"name": "cassiopeia_###CHILDNAME###", | |
"version": "4.0.0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Je zet slideshow.php in je template map: "templates/template-naam/html/mod_articles_category/" | |
- Mijn opmaak is gebaseerd op Bootstrap 5. | |
- Voor de slideshow gebruiken we splindle http://splidejs.com en in het voorbeeld gebruik ik jsdeliver om die aan de pagina toe te voegen. In mijn eigen implementatie heb ik de files locaal opgeslagen en geladen via de template. | |
Custom fields informatie | |
- Ik heb een custom field groep aangemaakt genaamd "slideshow" | |
- Daarna heb ik 6 custom fields aangemaakt. Voor alle custom fields heb ik veldgroep op "slideshow" gezet. en ik heb ook een artikel categorie genaamd "slideshow" gemaakt waar ik alle slides in heb staan. Die selecteer je ook bij "categorie". | |
De custom fields |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I've edited the original to be able to upload a field called "photo". | |
I also opted for not including the full path in my database so there is a bit more seperation | |
between database and file location. | |
Since these images are extension specific I opted to place them in the media folder like this: | |
'/media/com_[[[component]]]/images/[[[views]]]/'. This way i can keep my uploads seperate. | |
I also use the default componentHelper::randomKey(48); to generate a random key i append to the | |
filename to prevent double filenames being uploaded. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tagTitles = array( | |
"title 1", | |
"title 2", | |
"title 3" | |
); | |
foreach ($tagTitles as $title ) | |
{ | |
$category = JTable::getInstance('Category'); | |
$category->extension = "com_[[[component]]].training"; |