The Thinkery

Not finding what you're looking for? Don't hesitate to contact us!

Before Posting...

Before posting questions in the forums, please be sure to read the FAQs by clicking on the FAQs link in the sidebar product menu. You must be logged in and have a valid subscription to access the SUPPORT FORUMS.
×
Support Policy Notice

As outlined in our Rules section (though never closely followed by our staff!), effective immediately we will no longer be taking time to provide customizations of our products.

× PLEASE DO NOT POST SUPPORT QUESTIONS HERE!

Sort by city

  • alexcosta75
  • alexcosta75's Avatar Topic Author
  • Offline
  • Puzzler
  • Puzzler
More
12 years 3 weeks ago #4616 by alexcosta75
alexcosta75 created the topic: Sort by city
Hi Guys,
is it possible to show my inventory sorted by city as default? Today when I go to my inventory page (category) by default I have it sorted by street in alphabetical order. Is it possible to change to show by city in alphabetical order?

Thanks in advance.
Alex

Please Log in or Create an account to join the conversation.

More
12 years 3 weeks ago #4617 by vinny
vinny replied the topic: Re: Sort by city
Hi - are you using 1.5.3 or have you upgraded 1.5.4? If still using 1.5.3 you'll need to edit 'com_iproperty/views/cat/view.html.php' and 'com_iproperty/models/cat.php', if using 1.5.4 you only need to edit 'com_iproperty/models/cat.php' and find the filter order - looks something like:
$mainframe->getUserStateFromRequest( $option.'.cat.filter_order', 'filter_order', 'p.street', 'cmd' );
And change to:
$mainframe->getUserStateFromRequest( $option.'.cat.filter_order', 'filter_order', 'p.city', 'cmd' );

You can also change the 'filter_order_dir' to 'ASC' or 'DESC' -- 'ASC' for alphabetical order from a-z. Let us know questions. Thanks.

Vinny - The Thinkery
Good reviews on the JED make us work harder :) | IProperty | Work Force | Report Card

Please Log in or Create an account to join the conversation.

  • alexcosta75
  • alexcosta75's Avatar Topic Author
  • Offline
  • Puzzler
  • Puzzler
More
12 years 3 weeks ago #4618 by alexcosta75
alexcosta75 replied the topic: Re: Sort by city
You guys are the best!!! Just perfect!

Thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.317 seconds