- Posts: 4
COMMUNITY FORUM
Category Titles not Showing
- Stef Williams
-
Topic Author
- Offline
- New Member
I have chosen a menu item to link to three categories - all of which are inheriting parameters from their parent category.
The page displays all the items in the category, as expected, but not the Titles of the categories.
What I want is:
CATEGORY1
item1
item2
item3
CATEGORY2
item4
item5
item6
CATEGORY3
item7
item8
item9
but what I get is:
item1
item2
item3
item4
item5
item6
item7
item8
item9
Should these Category titles display?
The parameters of the parent category (and all the categories being displayed) says Title>Show in 'Category View Options'
I've been looking around for solutions, and some posts say that it is expected behaviour to show the Titles, while others suggest edits to the template over-rides (but I can't get any to work).
I have tried various things in the template over-rides to category.php and category_item.php but can only get $this->item->category->name; in category_item.php. Nothing relating to the category seems to work in category.php.
For the record, I have also tried it with NO inherited category parameters and NO template over-rides, and it's still the same. Can anyone help?
Please Log in or Create an account to join the conversation.
- Stef Williams
-
Topic Author
- Offline
- New Member
- Posts: 4
Surely someone knows what the default behaviour is supposed to be?
Please Log in or Create an account to join the conversation.
- Chris Cage
-
- Offline
- New Member
- Posts: 4
How to display item links grouped by category?
Please Log in or Create an account to join the conversation.
- Stef Williams
-
Topic Author
- Offline
- New Member
- Posts: 4
There MUST be someone who knows...
Please Log in or Create an account to join the conversation.
- Aaron
-
- Offline
- Premium Member
Interesting because I am also looking for something to display categories yet but I haven't quite gotten that far in my development of my site..
Aaron :)
Please Log in or Create an account to join the conversation.
- Stef Williams
-
Topic Author
- Offline
- New Member
- Posts: 4
Aaron wrote: What menu type are you using? Can you give us your site?
Interesting because I am also looking for something to display categories yet but I haven't quite gotten that far in my development of my site..
The menu type was K2 > Categories....
The site is only a dev version running on a local machine, so can't make it available, sorry.
Please Log in or Create an account to join the conversation.
- Chris Cage
-
- Offline
- New Member
- Posts: 4
We basically had to write some custom code to redo the way sub-categories are displayed. We also had to deal with the lack of pagination for sub-categories (apparently lacking in Joomla, not just K2).
In the end it is coming together, although we had to modify core K2 files and these got overwritten in the latest upgrade, so not the cleanest solution. If our lead developer to find a little time, I'll ask him to document what he did so we can share the knowledge.
Please Log in or Create an account to join the conversation.
- Peter Grube
-
- Offline
- Elite Member
- Posts: 241
Sub-category title Hide / Show, so it must obviously be a core feature, hopefully one of the forums admins can help shed some light on this.
Please Log in or Create an account to join the conversation.
- Manoj Goel
-
- Offline
- Junior Member
Please Log in or Create an account to join the conversation.