Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • alederodesign Friend
    #201908

    Hi i have a menu item called “products” made with masonry layout. All the articles belong to a specific category ( Intrex Products which has 4 child subcategories)
    I have problem in sorting these articles by categories and subcategories. How to do it? It is possible to sort them by Id or as i want?

    Thank you

    Ninja Lead Moderator
    #552367

    I’m so sorry about this but masonry layout could not support about ordering on that but you can use arsort or asort functions from php code, it will help you to order by Article ID or Category ID.

    Open templates/ja_decor/html/com_content/category/masonry.php file and add arsort or asort functions, see the screenshot


    1. masonry_order
    alederodesign Friend
    #553378

    Thank you and where i can sort them from the administration panel?

    Another question:

    Look at the picture i have upload : it’s possible to chose as default style the first type of Masonary portfolio list? In the sense that when i load the page it shows the list solution?

    Thank you


    1. es
    Ninja Lead Moderator
    #553509

    <blockquote>Thank you and where i can sort them from the administration panel?</blockquote>

    Yes, you can see the default ordering of joomla from menu as in the screenshot but it can not be as per your expectation :((

    About other requests, you can try with my solution below

    + Open templates/ja_decor/html/com_content/category/masonry.php file

    Change

    $bloglayout = isset($_COOKIE['blog-layout'])?$_COOKIE['blog-layout'] : '0';

    To

    setcookie('blog-layout','1');
    $bloglayout = isset($_COOKIE['blog-layout'])?$_COOKIE['blog-layout'] : '1';

    + Create templates/ja_decor/css/custom.css file and add new rule


    .grid-list .item.isotope-item{
    height : 300px;
    }

    Let me know if it helps


    1. ordering_masonry
    alederodesign Friend
    #553613

    For the second question is ok thank you.
    For the first one, how to sort article in the masonry layout, i still need help. If u see the picture i uploaded
    the filter menù shows the exact order the client wants also in the box below but i’m not able to do it. Can u suggest how to do it manually with the code? he wants this order:
    1) ambiente cucina,
    2) living
    3) mobili bagno,
    4)Notte,
    5) Porte
    Hi have two article for each categories and in the list below it shows me the article in a mess way :

    1) mobili bagno
    2)ambiente cucina
    3) living
    4)ambiente cucina
    5) living
    6)mobili bagno
    7)notte
    8)notte
    9)porte
    10)porte
    The last two categories are correctly sorted ( notte, notte porte porte) and i would like the same with the others ( ambiente cucina, ambiente cucina, living, living, mobili bagno, mobili bagno

    Thank you


    1. img
    Ninja Lead Moderator
    #553687

    The first my solution above only helps you to order items and not category name, If you wish to change like as your expectation, you can change ordering Category from Article Manager

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

This topic contains 6 replies, has 2 voices, and was last updated by  Ninja Lead 10 years ago.

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