test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • jtadesign Friend
    #188062

    Can this module work with K2? It seems to work only with Joomla Articles.
    Anyqay, the items are sorted by order of creation it seems. How can I make the items sorted alphabetically?

    MoonSailor Friend
    #495267

    Hi jtadesig,

    JA Content Popup only supports joomla article at this moment. With k2, I will pass this to developer team as a consider for improvement. You can check the status here :

    http://pm.joomlart.com/browse/JAMODPOPUP-23

    <blockquote>Anyqay, the items are sorted by order of creation it seems. How can I make the items sorted alphabetically?</blockquote>

    Open file “modules/mod_jacontentpopup/helpers/adapter/content.php” find code :

    [PHP]
    if ($params->get(‘ordering’, ‘created’) == “ordering”) {
    $model->setState(‘list.ordering’, ‘a.ordering’);
    $model->setState(‘list.direction’, $params->get(‘sort_order’, ‘DESC’));
    } else if ($params->get(‘ordering’, ‘created’) == “rand”) {
    $model->setState(‘list.ordering’, ‘RAND()’);
    } else {
    $model->setState(‘list.ordering’, $params->get(‘ordering’, ‘created’));
    $model->setState(‘list.direction’, $params->get(‘sort_order’, ‘DESC’));
    }
    [/PHP]

    and replace with :
    [PHP]
    $model->setState(‘list.ordering’,’a.title’);
    $model->setState(‘list.direction’, ‘ASC’);
    [/PHP]

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  MoonSailor 11 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum