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 /
Created June 17, 2019 23:18 — forked from alexgarel/
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 / 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
* @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

For accessibility we need to add a caption to every table in the admin

For example


		etc etc

But we also need to get the current sort setting and possibly filters (if set)

brianteeman /
Last active February 6, 2018 17:58
WCAG 2.1 - Understandable

Information and the operation of user interface must be understandable.

Guideline 3.1 Readable

Make text content readable and understandable.

Word choice: use the simplest word that conveys your meaning. [1] Prefer the short word to the long. [2]

brianteeman /
Last active October 24, 2017 12:12
Testing accessible navgation strip


<nav role="navigation" aria-label="PAGENAVIGATION">
	<ul class="pagination-list">
		<li class="disabled">
				<span class="icon-first" aria-hidden="true"></span>
brianteeman / report.txt
Created January 30, 2017 10:46
Test report 12009
Tested the latest version in mono-lingual web site
Created a category and a menu item to display that category
Created an article and saved in the category above
Created a shared draft link
brianteeman / index.php
Created January 23, 2017 12:22
Replacement index.php for the Editor template mentioned in
* @package Joomla.Site
* @subpackage Templates.protostar
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
defined('_JEXEC') or die;
brianteeman /
Last active April 2, 2018 09:44
When is a media manager not a media manager?

... when it's a modal

Field Types

1. media

provides modal access to the media manager for insertion of images with upload for users with appropriate permissions.

2. file

Provides an input field for files

3. filelist

provides a drop down list of files from a specified directory.

Keybase proof

I hereby claim:

  • I am brianteeman on github.
  • I am brianteeman ( on keybase.
  • I have a public key ASA6gKZCJ613rghmPKnKGeiE7rR6fYi-CZtiR9iebhmebAo

To claim this, I am signing this object: