Keyword

[SOLVED] K2 Category list with subcategories - problem

  • Przemek
  • Przemek's Avatar Topic Author
  • Offline
  • New Member
More
9 years 10 months ago - 9 years 10 months ago #130305 by Przemek
Hi,

I will be very happy if someone help me to solve my problem. I created new menu positon and select menu item type > K2 Categories. Kategories named Wykonawcy (category without articles) with one subcategory-eminem ( with 8 articles ) . I wanted to create long list of subcategories. My problem is that on subcategories view i see also articles wchich belong to subcategory. ( look file K2 problem ). Please tell me how get rid of items in this view ? I also want to know how to disable "view items" option ( circle number 2 ) . I checked other topics but it wasnt helpfull. When i set catalog mode on Category "Artyści" it is happening something like on file number 2.

i want to see list of this items only when i press subcategory title

Please help me i will be very gratefull.

sorry for my english.
Attachments:

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #130306 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Category list with subcategories - problem
If you enable Catalog mode, then item belonging only to directly that category will be displayed. Items beloinging to subcategories will not be displayed.

If you want to have list of sub-categories on the parent category and a list of items on the child category, you need to do these things.

a) Enable Catalog mode on the parent category.
b) Enable the subcategory blocks only on the parent category.
c) The view items can be hidden with CSS or you can override the category.php file and remove that string.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Przemek
  • Przemek's Avatar Topic Author
  • Offline
  • New Member
More
9 years 10 months ago #130307 by Przemek
Thanks for you answer.

Could you tell how exactly Hide itmes with CSS ? what i need to do ? or what code and where to paste it
? The same question about ovveriding the category.php. Wchich way is easier and will work on many subcategories ? ?

Greetings

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #130308 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Category list with subcategories - problem
.subCategory .subCategoryMore { display: none; }

Paste this snippet on your template's stylesheet.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Przemek
  • Przemek's Avatar Topic Author
  • Offline
  • New Member
More
9 years 9 months ago #130309 by Przemek
I tried and this doesnt work :( but i thinkg that i found right place to change it in category php. (check file ) After Subcategory more. The last thing i will ask you it is to write me a php code wchich then i will paste in this location.

Thanks for your patience
Attachments:

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 9 months ago #130310 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Category list with subcategories - problem
If this did'nt work it pretty much means that your markup is different, or there are other styles overriding it.

Can you send me a link please so I can send you the correct snippet?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Przemek
  • Przemek's Avatar Topic Author
  • Offline
  • New Member
More
9 years 9 months ago #130311 by Przemek
Here you go. Link to part of my website where i can display only the subcategory view without articles.

muzycznasiec.pl/photos/columns-4

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 9 months ago #130312 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Category list with subcategories - problem
I pasted the snippet and it worked (The view items link was gone). I did not see it in any part of your site.
Make sure you have pasted it in your template's stylesheet.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Przemek
  • Przemek's Avatar Topic Author
  • Offline
  • New Member
More
9 years 9 months ago #130313 by Przemek
We got some missunderstanding here. Your snippet delete link "view items" but i was trying to remove shubcategory list of items from K2 - kategory view. When i set K2 Kategory View -> Artyści i wan to see only list of subcategories wchich belong to this category ( without item list under the subcategory ) . Pls check the link of my site wchich i pasted here. I want only see the parent category title (artyści ) , childer category title ( Eminem ) with number of articles but nothing more. i want to remove items from this view. Articles Eminem and Eminem Rap God shouldnt be there.

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #130314 by Lefteris
@Przemek

First read getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates . Then in your override for category.php delete lines 134 to 262 .

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum