Clarimuse
Clarimuse Joomla Extensions dev site
  1. You are here:  
  2. Home
  3. Blog

Mostly notes about Joomla extension development.

Broken update to 4.0.2 from beta

Details
Category: Blog
Last Updated: 26 August 2021

After the update I was just getting a 500 server error.

Fix was to run following code on db.

ALTER TABLE #__template_styles ADD inheritable TINYINT NOT NULL DEFAULT '0' AFTER title, ADD parent VARCHAR(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL AFTER inheritable;

Make sure you replace #_ with your db prefix.

Component Upgrade to J4 notes

Details
Category: Blog
Last Updated: 30 September 2020

A set of notes and code examples, mostly for myself, illustrating some of the changes necessary to make a component Joomla 4 compatible. You will probably need to update the database tables for your component as well.

Read more: Component Upgrade to J4 notes

Bootstrap 4 Breakpoints

Details
Category: Blog
Last Updated: 24 August 2020
  • J4

Add this to your template just after the body tag whilst developing so you can see where the bootstrap breakpoints are.

Change true to false to turn it off.

<?php if (true) : ?>
<div class="bg-warning p-2 d-block d-sm-none">xs</div>
<div class="bg-success text-white p-2 d-none d-sm-block d-md-none">sm</div>
<div class="bg-danger text-white p-2 d-none d-md-block d-lg-none">md</div>
<div class="bg-info text-white p-2 d-none d-lg-block d-xl-none">lg</div>
<div class="bg-light p-2 d-none d-xl-block">xl</div>
<?php endif; ?>

Create new Category programmatically

Details
Category: Blog
Last Updated: 24 August 2020
  • J4
$category = [
 'title'     => 'Uncategorised',
 'parent_id' => 1,
 'extension' => 'com_filelinks',
 'language'  => '*',
 'published' => 1,
];

$cat = Joomla\Component\Categories\Administrator\Helper\CategoriesHelper::createCategory($category);

 

$cat will be category id or null if category already exists.

Page 2 of 2

  • 1
  • 2

Main Menu

  • Home
  • Blog
  • Contact Me

Extensions

  • Filelinks
    • Changelog
  • editors-xtd fontawesome
  • Refresh Media Version
  • Verify
  • FormsAdmin
    • Changelog
  • Fields2Content
  • Password Generator
  • Xmap
  • Atomhunt

Demo

  • HTML Sitemap
  • XML Sitemap
  • Atomhunt