Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / Default sort index - two issues

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

Default sort index - two issues

More
11 years 11 months ago #8164 by dhphllps
Default sort index - two issues was created by dhphllps
I would like for the category list view to default to being sorted by a different column than date. As I recall from earlier versions of AdsManager, it was a simple edit to one file that determined the default sort index, but I don't remember what file needs the override or edit.

Also- users are reporting that if they choose something other than the default sort value, that choice is not continued after the first page of listings. Sorting order returns to the default. This is clearly a bug, not a feature ;) Is there any way to continue the chosen sort order beyond the first page?
More
11 years 11 months ago #8181 by loic
Replied by loic on topic Default sort index - two issues
Hello,

The sorting are set in the file 'administrator/components/com_adsmanager/models/content.php' line 852 :
$filter_order = "a.date_created DESC ,a.id ";

if you wish to sort the ads by one of your field, you just need to replace 'a.date_created' by the name of your field, for example:
$filter_order = "a.ad_headline ASC ,a.id "; // We order the ads by title in alphabetic order.

Best regards.
More
11 years 11 months ago #8229 by dhphllps
Replied by dhphllps on topic Default sort index - two issues
Thanks. I changed the file as directed to sort by ad_headline. That fixed half of the problem - now Adsmanager remembers what sort order has been chosen on all pages of a multiple page listing, but it still defaults to sorting by date. What am I missing?
More
11 years 11 months ago #8250 by loic
Replied by loic on topic Default sort index - two issues
Hello,

I don't really understand your last message.
The modification did not work ?

Best regards.
More
11 years 11 months ago - 11 years 11 months ago #8253 by dhphllps
Replied by dhphllps on topic Default sort index - two issues
There were two problems mentioned in my first post:

1) I want to have the default sort index be on ad_headline rather than date.
2) When a user chooses a sort order from the select menu, that choice was followed only on the first page of multiple page lists, then every subsequent page was sorted by date.

I modified the file as you indicated to choose ad_headline as the default sort order. This did not change the default - it still defaults to sorting by date. But, when one selects a different sort field than the date, that choice is reflected in every page of a multiple page listing.

So, the fix for default sort order did not change the default sort order, but it did fix the problem of the chosen non-default sort being remembered through multiple page listings.

Does that help? ;-)

Actually, I wrote too soon- I just tried the pages in Safari instead of Firefox and the same problem #2 is still present.

See www.hornsociety.org/free-classifieds - choose a sub-category such as horns—>full double. You'll see it sorted by date. Choose Make ASC from the sort select menu to change it to sorting by title. The scroll to the bottom and click page 2. On Safari, Chrome and Opera it will show you page two of a sort by date :-( On Firefox, at least it does stick with the sort by make.

===============

Another update: I think I've found a temporary fix to the problem of sort order not sticking- I did have display mode in general options set to give the user the option of short, expand or grid. When I changed that to only offer short mode, the alternative sort works in every browser I've tried. Default sort is still date, however...
Last edit: 11 years 11 months ago by dhphllps.
More
11 years 10 months ago #8703 by dhphllps
Replied by dhphllps on topic Default sort index - two issues
Sorry to come back to this so much later, but yes, the modification to make ad_headline the default sort did not work. :(
Time to create page: 0.075 seconds
Powered by Kunena Forum