PAGINATION-MAGIC-001
function pagination_item_active($item)
Magic pagination_item_active functions
Joomla 3 templates defined global functions in pagination.php. Joomla 4 removed that hook.
function pagination_item_active($item) → Layout joomla.pagination.link
Symptoms people search
pagination looks like unstyled html · pagination_item_active ignored
Replace this code
Swap function pagination_item_active($item) for Layout joomla.pagination.link.
Joomla 3
Remove or stop calling this
function pagination_item_active($item) {
return '<a href="' . $item->link . '">' . $item->text . '</a>';
}Joomla 4 / 6
Use this instead
Override layouts/joomla/pagination/link.php in the template html/ folder.How to fix it
- 1Delete the magic functions.
- 2Copy Cassiopeia/Atum pagination layouts and edit those.
Also known as
pagination_item_active · pagination_list_render
There is no 1:1 swap for this one. The architecture changed. If you cannot rewrite it, Infyways can.
Related issues
- Joomla 3 → 4PHP
JPATH_PLATFORM
JPATH_PLATFORM → Do not use — autoload instead
- 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 4 → 5Templates
Template without joomla.asset.json
templateDetails.xml only → joomla.asset.json + WebAssetManager in index.php
- Joomla 5 → 6Templates
JHtml::_('jquery.framework') in templates
JHtml::_('jquery.framework') → Asset dependency, not a forced load in index.php