Hi,
I cannot ordering the article by joomla order position.

This check don't work.

Can you help me?
Thanks
Marco

Hi Marco,

If you don't set any field to sort like this:

It will sort by Joomla Article order.

5 days later

Sorry but don't work anyway.
The items are shown in alphabetical order and not the custom joomla article order.

Can you help me?
Thanks
Marco

Hi Marco,

I'm sorry for my first reply, I remembered incorrectly as when you don't select any field to sort in the filter settings, it will sort articles by article IDs, not article ordering.

It will require customization in code to sort by article order. I discussed with the team whether there could be an option but it's not possible as it relates to category also. If the filter contains articles from various categories, the order might be incorrect.

Regards

I understand.
Can you tel me where is the code?
i can customize it by myself. I just need to understand the php page and the point in the code

Thanks
Marco

You can customize this file: plugins\jamegafilter\content\helper.php

and check the function getListId

I changed the sql order but don't work:

	$query->select('id')
			->from('#__content')
			->where('state = 1 AND catid IN (' .implode(',', $catids) . ') AND language IN ("*", "'.$lang.'")' )
			->where('(publish_up = ' . $nullDate . ' OR publish_up <= ' . $nowDate . ')')
			->where('(publish_down = ' . $nullDate . ' OR publish_down >= ' . $nowDate . ')')
			->order('ordering');

    Also the filter contains articles from various categories. And if i Order by categories It's same problem.

    Hi visualcomunicazione

    Update your code a bit in:

    ->order('ordering ASC');

    Then go to backend >> Save filter or Index the filter + clear all the caches.

    And pls note that your above code will work for a category only, it will not work properly if that category has child category.

    Regards

    Write a Reply...
    You need to Login to view replies.