The WorksForWeb Community Forums
Welcome to the WorksForWeb community forums. Here you can discuss WorksForWeb products with others and contribute to the rapidly growing WorksForWeb community. Please note that while WorksForWeb staff try to maintain presence on the forums, this is not the most reliable way to contact WorksForWeb staff. In case you require a timely response from WorksForWeb on an issue, please open a support ticket here. For pre-sales questions, please open a sales ticket here.

Welcome, Guest. Please login or register.
February 09, 2012, 12:59:52 AM

Login with username, password and session length
Search:     Advanced search
Added the iLister-related Boards

Rate My Site Boards Added

Merged iAuto and iRealty Support Forums together

Several new tips in the Tips and Tricks section
1,602 Posts in 623 Topics by 1,179 Members
Latest Member: bobsteam
* Home Help Search Login Register
+  The iAuto/iRealty/iLister Support Forum
|-+  iAuto, iRealty and iLister v.4.x
| |-+  General iAuto Discussions
| | |-+  My Listings not sortable for Make/Model
« previous next »
Pages: [1] Print
Author Topic: My Listings not sortable for Make/Model  (Read 685 times)
Jakkie81
Newbie
*

Karma: 0
Posts: 7


View Profile
« on: July 23, 2010, 05:51:38 AM »

Hi,

I'm unable to sort listings in the Make/Model Field in URL/my_listings/
Sorting only seems to work for URL/search_results/
This is for V4.7.1
Is this a bug, or just on my end?
Can anyone confirm if this is working in V5, or maybe supply a fix?

Thx

mylistings.tpl
Code:
{if $property.MakeModel.is_sortable}
<a href="?restore=1&amp;sorting_field=MakeModel&amp;sorting_order={if $sorting_order == 'ASC' && $sorting_field == 'MakeModel'}DESC{else}ASC{/if}">[[FormFieldCaptions!Make/Model]]</a>
{if $sorting_field == 'MakeModel'}{if $sorting_order == 'ASC'}<img src="{image}b_up_arrow.gif" alt="Up" />{else}<img src="{image}b_down_arrow.gif" alt="Down" />{/if}{/if}
{else}
[[FormFieldCaptions!Make/Model]]
{/if}
Logged
Arthur
Jr. Member
**

Karma: 2
Posts: 81


View Profile
« Reply #1 on: July 26, 2010, 11:32:37 AM »

Hello Jakkie.
You can test it on our demo http://www.iautosoftware.com/demo/

Logged

Jakkie81
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #2 on: July 28, 2010, 04:03:44 AM »

Hey Arthur,

I did test it on http://www.iautosoftware.com/demo/ (v5.0) for user "DEMO".
Same result; Listings NOT sortable for the MakeModel field in "My Listings" ...  Roll Eyes



As you can see; Photos, Year, Mileage, Price & Posted is sortable. Only the Make/Model field is not working.

In mylistings.tpl (v4.7.1)
Code:
{if $property.MakeModel.is_sortable}
<a href="?restore=1&amp;sorting_field=MakeModel&amp;sorting_order={if $sorting_order == 'ASC' && $sorting_field == 'MakeModel'}DESC{else}ASC{/if}">[[FormFieldCaptions!Make/Model]]</a>
{if $sorting_field == 'MakeModel'}{if $sorting_order == 'ASC'}<img src="{image}b_up_arrow.gif" alt="Up" />{else}<img src="{image}b_down_arrow.gif" alt="Down" />{/if}{/if}
{else}
[[FormFieldCaptions!Make/Model]]
{/if}

So why does {if $property.MakeModel.is_sortable} return FALSE ?
Even when removing the {if} statements the fields still wont sort as expected.

The function works perfectly in other search results:
In search_results.tpl (v4.7.1)
Code:
<a href="?restore=1&amp;sorting_field=MakeModel&amp;sorting_order={if $listing_search.sorting_order == 'ASC' && $listing_search.sorting_field == 'MakeModel'}DESC{else}ASC{/if}">[[FormFieldCaptions!Make/Model]]</a>
{if $listing_search.sorting_field == 'MakeModel'}{if $listing_search.sorting_order == 'ASC'}<img src="{image}b_up_arrow.gif" alt="Up" />{else}<img src="{image}b_down_arrow.gif" alt="Down" />{/if}{/if}

I believe that the Make/Model field is the most important sorting field for any user that lists multiple cars.
If a user wants edit his/her listings , they wont search for the listing by the number of photos or Mileage.
« Last Edit: July 28, 2010, 06:05:55 AM by Jakkie81 » Logged
Arthur
Jr. Member
**

Karma: 2
Posts: 81


View Profile
« Reply #3 on: July 30, 2010, 02:36:15 PM »

Hello Jakkie.

I have checked - and unfortunately it won't be possible to make it work.

Regards
Logged

Jakkie81
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #4 on: August 15, 2010, 03:24:22 AM »

I have checked - and unfortunately it won't be possible to make it work.

Not possible? Its the 21st century after all...

But don't worry, I got it working eventually.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Classified Software by Worksforweb Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!