Mostly notes about Joomla extension development.
- Details
- Category: Blog
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.
- Details
- Category: Blog
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.
- Details
- Category: Blog
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; ?>
- Details
- Category: Blog
$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.