-
AuthorPosts
-
October 8, 2014 at 9:49 am #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 ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 9, 2014 at 7:05 am #552367I’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
October 17, 2014 at 11:35 am #553378Thank 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
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 20, 2014 at 2:14 am #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
October 20, 2014 at 11:50 am #553613For 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 bagnoThank you
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 21, 2014 at 3:37 am #553687The 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
AuthorPostsViewing 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
Jump to forum