- Posts: 37
COMMUNITY FORUM
Displaying Category title
- BrethrenArchives.Com
-
Topic Author
- Offline
- Junior Member
Thanks in advance,
A. Wayne Webb
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please enable right clicking in your site.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- BrethrenArchives.Com
-
Topic Author
- Offline
- Junior Member
- Posts: 37
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- BrethrenArchives.Com
-
Topic Author
- Offline
- Junior Member
- Posts: 37
So, how do I go about showing the "Research Blog" (category name) on the front page?
Thanks kindly,
A. Wayne Webb
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
On the other hand you can achieve this by setting the params on each item (item view in category listings).
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- BrethrenArchives.Com
-
Topic Author
- Offline
- Junior Member
- Posts: 37
Krikor Boghossian wrote: You cannot do that directly to your template since in multi-category menu items, only one template will be loaded.
On the other hand you can achieve this by setting the params on each item (item view in category listings).
Okay, so I changed the setting Item view options in category listings > Category from Inherit from category to Show. I did that both for the K2 item and for the K2 category. In the K2 category I made the change in both Item view options and Item view option in category listings.
I each time cleared the site cache and the browser cache.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
I can see Published in Research Blog now under the Discussion #1 item.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- BrethrenArchives.Com
-
Topic Author
- Offline
- Junior Member
- Posts: 37
Ahh, now I see the confusion between us. :cheer: Yes, "Research Blog" is listed under the K2 "Discussion #1" item. What I am going for is for the Research Blog category only, to have the category title appear above the date and time line of Discussion #1.Krikor Boghossian wrote: No need to edit the category as well. For the frontpage you can just edit that specific item.
I can see Published in Research Blog now under the Discussion #1 item.
Cordially,
A. Wayne Webb
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
That is a bit more complicated. You have to edit the category_item.php file.
This little snippet is the cateogry title
<?php if($this->item->params->get('catItemCategory')): ?>
<!-- Item category name -->
<div class="sans catItemCategory">
<a href="<?php echo $this->item->category->link; ?>"><?php echo $this->item->category->name; ?></a>
</div>
<?php endif; ?>
Locate it and move it above the date which you will find by looking for this comment <!-- Date created -->
As for where to find these files and how to override them you need to read this post:
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.