Sorting categories on the main.

Is it possible to sort the categories on the main one by their own or by ID? Tried like here but nothing happens. https://community.dj-extensions.com/discussion/2040/order-regions#latest

Comments

  • >>Is it possible to sort the categories on the main one by their own or by ID?
    -- Categories are displayed in few places. Do you want to change ordering of categories in top of adverts list , selectors from adding advert , categories tree, categories module or categories tree :) ?
    If globally then please set categories ordering https://dj-extensions.com/faq/dj-classifieds-faq/how-to-order-categories then it will base on those settings.
  • Thank. We'll try.
  • >>Is it possible to sort the categories on the main one by their own or by ID?
    -- Categories are displayed in few places. Do you want to change ordering of categories in top of adverts list , selectors from adding advert , categories tree, categories module or categories tree :) ?
    If globally then please set categories ordering https://dj-extensions.com/faq/dj-classifieds-faq/how-to-order-categories then it will base on those settings.

    There is nothing that has not helped that the categories stood on the order of things on the main, but in the Add ad everything is fine. But I need to do so that on the main all categories would be in my order. Can eat still what nibud a way?
  • For categories ordering in adverts list please set parameter "Subcategories Ordering" to "Ordering", this should help

  • In the subcategory, everything shows correctly, but in the DJ-Classifieds Category Tree module on the main page everything is not like I added categories. That is not in order as I would like. I'm sorry forgot to say that in the module!!!
  • edited September 2018
    DJ-Classifieds Category Tree is ordered by name as default, to modify this please in file modules/mod_djclassifieds_cattree/mod_djclassifieds_cattree.php change lines 44-48 from

    if($params->get('cat_id',0) > 0){
    $cats= DJClassifiedsCategory::getSubCatIemsCount($params->get('cat_id',0),1,'name');
    }else{
    $cats= DJClassifiedsCategory::getCatAllItemsCount(1,'name');
    }

    to

    if($params->get('cat_id',0) > 0){
    $cats= DJClassifiedsCategory::getSubCatIemsCount($params->get('cat_id',0),1,'ord');
    }else{
    $cats= DJClassifiedsCategory::getCatAllItemsCount(1,'ord');
    }


    In new version we will add parameter for this.
  • We will try thank you. And will be implemented in the new version that would be in additional fields, you can select the checkboxes where you want to add th? And it is not convenient when a lot of categories and each item to add separately with the page reload.
  • DJ-Classifieds Category Tree is ordered by name as default, to modify this please in file modules/mod_djclassifieds_cattree/mod_djclassifieds_cattree.php change lines 44-48 from

    if($params->get('cat_id',0) > 0){
    $cats= DJClassifiedsCategory::getSubCatIemsCount($params->get('cat_id',0),1,'name');
    }else{
    $cats= DJClassifiedsCategory::getCatAllItemsCount(1,'name');
    }

    to

    if($params->get('cat_id',0) > 0){
    $cats= DJClassifiedsCategory::getSubCatIemsCount($params->get('cat_id',0),1,'ord');
    }else{
    $cats= DJClassifiedsCategory::getCatAllItemsCount(1,'ord');
    }


    In new version we will add parameter for this.

    Thank you very much. Everything turned out .... Uraaaaa
  • Tell me please. How can I fix the changes that would not change with the update? And then if you update the script, everything becomes as it was and you have to do something!
  • Just like I told this option was added to latest 3.7.4 version so if you will make update changes will be overwritten and you will have to set it via parameters in module https://www.screencast.com/t/obG1Pz98
  • I'm sorry. The translator incorrectly translated. Thank!
  • Hi. Please tell me. How do I do that on the home page, categories were constructed as here https://doskavsem.ru/vse-ob-yavleniya.html?cid=0&rid=0

    on my list, and not arbitrarily.
  • Hi,

    Do you mean that you want those 5 columns on full width?
    If yes, I see you have some custom styles that are breaking the layout on the home page.

    Regards,
    Marcin
  • Hi. No, I want the categories on the main page to be sorted as in the first screenshot!
  • merszel said:
    Hi. In a component so made, but the site looks drugomu.

  • Hi,

    I tested this option and it works well for me.
    We would need to investigate this issue deeper on yoru site.
    I suggest you contacting our technical support via tickets.

    Regards,
    Marcin
Sign In or Register to comment.