Keyword

Category and subcategory with items

  • strummsteel
  • strummsteel's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #88921 by strummsteel
Category and subcategory with items was created by strummsteel
In previous versions, I have managed to change the order of items.
I managed to put items between the main category and sub categories by editing the category.php file like this...

Category
Items

Subcategories



K2 defaults are always this

Category
Subcategories
Items


I upgraded to 2.4.1 and somehow the behavior is weird. All my pages are mucked up. Some display the items properly (between the category and the subcategories), while some dont display  the sub categories when I dont show items.

Help me please.

Darell

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

  • strummsteel
  • strummsteel's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #88922 by strummsteel
Replied by strummsteel on topic Category and subcategory with items
The customizations i did only works when there are items to display. The page breaks (subcategories disappear) when I setup a category with no items. Please help.

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

More
13 years 11 months ago #88923 by william white
Replied by william white on topic Category and subcategory with items
please send links to a working and a nonworking example

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

  • strummsteel
  • strummsteel's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #88924 by strummsteel
Replied by strummsteel on topic Category and subcategory with items
Hi this is a link of a category (with subcategories) not showing and items

web2.irri.org/our-science/research/rice-breeding

this is a category (with subcategories) that shows 3 items

web2.irri.org/our-partners/networks/irrigated-rice-research-consortium

I have edited the category.php to move the items above the subcategory , but when i do that it only works for the second link. Once i visit the first link my subcategories disappear.

Please help.

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


Powered by Kunena Forum