TPL-NO-ASSET-JSON-001
templateDetails.xml only
Template without joomla.asset.json
Joomla 3 templates loaded CSS/JS with JHtml helpers. Joomla 4+ templates declare a web asset file. Without it, scripts collide or never load on Joomla 6.
templateDetails.xml only → joomla.asset.json + WebAssetManager in index.php
Symptoms people search
template css not loading · scripts duplicated · no joomla.asset.json
Replace this code
Swap templateDetails.xml only for joomla.asset.json + WebAssetManager in index.php.
Joomla 3
Remove or stop calling this
JHtml::_('bootstrap.framework');
JHtml::_('jquery.framework');Joomla 4 / 6
Use this instead
$wa = $this->getWebAssetManager();
$wa->useStyle('template.cassiopeia.user');
// Register template assets in joomla.asset.jsonHow to fix it
- 1Add joomla.asset.json next to templateDetails.xml.
- 2Load CSS/JS through WebAssetManager in index.php.
- 3Stop calling bootstrap.framework and jquery.framework in the template chrome.
Also known as
joomla.asset.json · templateDetails.xml · WebAssetManager
Related issues
- Joomla 4 → 5JavaScript
addScript() / addStyleSheet() vs WebAssetManager
$doc->addScript() → WebAssetManager + joomla.asset.json
- Joomla 3 → 4Templates
Protostar site template
Protostar → Cassiopeia (or a Joomla 4+ template), preferably a child template
- Joomla 3 → 4Templates
ISIS / Hathor admin templates
ISIS → Atum
- Joomla 3 → 4Templates
Beez / Beez3 templates
Beez3 → Cassiopeia
- Joomla 3 → 4Templates
Magic pagination_item_active functions
function pagination_item_active($item) → Layout joomla.pagination.link
- Joomla 5 → 6Templates
JHtml::_('jquery.framework') in templates
JHtml::_('jquery.framework') → Asset dependency, not a forced load in index.php