Skip to content

Instantly share code, notes, and snippets.

View brianteeman's full-sized avatar
🐛
Hunting Bugs

Brian Teeman brianteeman

🐛
Hunting Bugs
View GitHub Profile

Using Bootstrap in Joomla 4

Joomla 4 introduces a modular approach for interactive components

  • What is a modular approach?
  • The functionality is broken down into individual components, files. There is no one file approach as it was with Bootstrap in Joomla 3. This was done for efficiency and performance gains (send only the code that is needed instead of delivering everything in case some page will need so component).

How to deal with Interactive components

  • Load what you need per case! There are helper functions that will help you achieve this and, it is dead easy just call the function with the appropriate arguments.
@brianteeman
brianteeman / fix_assets.py
Created June 17, 2019 23:18 — forked from alexgarel/fix_assets.py
Utility to fixe a not so broken joomla assets table. Provided all assets are there and parent_id is correct, it will recompute level, rgt and lft for all entries.
import argparse
import getpass
import sys
import mysql.connector
class AssetsFixer:
cols = ["id", "parent_id", "level", "lft", "rgt"]
@brianteeman
brianteeman / coursesexpired.php
Last active February 24, 2019 09:19 — forked from renekreijveld/clidemo_3.2.php
CLI script to unpublish classes from samuel taylor web site
<?php
/**
* @package Joomla.Cli
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* CLI script to unpublish classes from samuel taylor web site
* Put this script in the /cli folder
* Execute by php <path_to_your_joomla_root>/cli/coursesexpired.php
*/