Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1885

Joomla! 5.x Coding • Re: where is stored menu item ordering ?

$
0
0
in default.php

Code:

foreach ($list as $i => &$item){$item->ordering =  $i;$itemParams = $item->getParams();require ModuleHelper::getLayoutPath('mod_menu', 'default_'.$layout);}
in default_url.php

Code:

$attributes['data-ordering'] = $item->ordering;
it works, I can now use css flex order if needed

Statistics: Posted by erick-b — Tue Aug 13, 2024 8:50 pm



Viewing all articles
Browse latest Browse all 1885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>