test
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • tandulaen Friend
    #198194

    Hello,

    I have problem with search results. I want sort results by extafields.

    Example:

    I have flats (realestate) with several extrafields. I wanna sort by: price, area, bathrooms etc.l extrafields. I want sorting by: price, area, bathrooms etc.

    Is this possible with this extension?

    Thanh Nguyen Viet Friend
    #536921

    No I am afraid, JA K2 Filter does not support to order by extra fields.

    thanosbrt Friend
    #537006

    <em>@Dead Code 429575 wrote:</em><blockquote>No I am afraid, JA K2 Filter does not support to order by extra fields.</blockquote>

    I had also the same issue. There is no way to sort items by extra fields?

    And if its not possible via joomla, could it be possible by any change at sql tables?

    Thanh Nguyen Viet Friend
    #537039

    As mentioned in earlier post above, JA K2 Filter does not have an option to sort items by extra fields.

    tandulaen Friend
    #537065

    Is it possible implementing this features in next version?

    thanosbrt Friend
    #537128

    <em>@Dead Code 429735 wrote:</em><blockquote>As mentioned in earlier post above, JA K2 Filter does not have an option to sort items by extra fields.</blockquote>

    Searching at Google i found somewhere the following solution

    <blockquote>Create a menu item linking to an empty article.
    Create a module k2 contents that selects from your k2 category, that appears on your new empty page
    For “Order by”, select “Title alphabetical” – we use this as we are going to hack it – so it needs to be an order you will not use for any other module
    Open the file modules/mod_k2_content/helper.php
    on line 195 find the code

    case ‘alpha’ :
    $orderby = ‘i.title DESC’;
    break;

    and replace with:

    case ‘alpha’ :
    $orderby = ‘i.extra_fields DESC’;
    break;

    OR

    change the component file:

    componentscom_k2modelsitemlist.php

    (I don’t know how to do a proper override of this file.)

    There I added my order instruction in line 334, overwriting the default ordering (by id):

    $orderby = ‘i.alias ASC’;</blockquote>

    I know that is not based only on your module but mainly on k2. Altough could you waste some time to look at it and tell if it works and if yes give some more details? I tried something like that unsuccesfully, but perhaps i am doing something wrong. It would be very helpful if items could be sorted by extra fields too!

    Thank you

    Thanh Nguyen Viet Friend
    #537178

    Thank you for your suggestion, but the code that you mentioned will not work
    [PHP]case ‘alpha’ :
    $orderby = ‘i.extra_fields DESC’;
    break; [/PHP]

    Since, extra_fields field stores Json string that encodes all extra fields, so if you order by this field, you will not get a list with expected ordering.

    I just raised this issue in our issue tracker system for further consideration whether we can add this feature in upcoming version or not. You can check status of this issue here.
    http://pm.joomlart.com/browse/JAK2FILTER-164

    thanosbrt Friend
    #537803

    Ok thank you. And now which are next steps?
    I mean shall i wait an update containing that option in the near future, or complete the site i am working on and hoping that after some months there might be something new?

    And apart from that, for now there is absolutely no way to do what i want?

    Thanh Nguyen Viet Friend
    #537831

    Hello,

    We will try to apply this feature as soon as possible. Please be patient, as you know we receive many requests from user per day, and support team can not solve them all in day. With hard request or request for new feature, we need report and disscuss to dev team to get it done.

    Regarding your issue, it is new feature, so our dev team need a time to find a solution and implement it. We have just released a new version 1.0.3 of JA K2 filter yesterday. so, we do hope that the next version can be released with in 2 next weeks.

    tandulaen Friend
    #540387

    Hello,

    Any progress on this issue?

    Thanh Nguyen Viet Friend
    #540610

    K2 filter development team will develop this feature this week, so we do hope that can release it within next 2 weeks.

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

This topic contains 11 replies, has 3 voices, and was last updated by  Thanh Nguyen Viet 10 years, 5 months ago.

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