darkhoros VIP
Total posts: 152
08 Jun 2017 09:44

Hi, I need to add the sorting options for creation date and title a-z, in other parts of the website, out side the cobalt views, I found the coode I need to use

<?php echo JHtml::_('mrelements.sort',  ($markup->get('menu.menu_order_ctime_icon') ? HTMLFormatHelper::icon('document-search-result.png'): null ).' '.JText::_('CORDERRELEVANCE'), 'searchresult', $listDirn, $listOrder); ?>

<?php echo JHtml::_('mrelements.sort',  ($markup->get('menu.menu_order_title_icon') ? HTMLFormatHelper::icon('edit.png'): null ).' '.JText::_($markup->get('menu.menu_order_title_label', 'Title')), 'r.title', $listDirn, $listOrder); ?>

This will draw the required links, but it is not working when added to other view such as breadcrumb view for example, I know I need to add somthing to this view to make it work, but I am not sure what.

So if any one can help me to get this sorting links I need.

Thank you.

Last Modified: 23 Jun 2017


Sergey
Total posts: 13,748
18 Jun 2017 07:26

You want to create links to presorted lists?

Read if this is what you want

http://docs.mintjoomla.com/en/cobalt/prefiltered-links


darkhoros VIP
Total posts: 152
23 Jun 2017 11:29

Briliant. Thank you.

Powered by Cobalt