Name of Category above item title in item.php

More
14 years 7 months ago #5900 by ThatComputerDude
So I stole some of this code from the Joomla template so the FlexiContent items can look similar to website template.

So in category view, it looks right:
www.joomgo.com/clients/monroeV3/ ... ers-office

I edited the category_category.php at the very top:
Code:
<div id="ja-contentheading"> <?php if ($this->params->get('show_page_title')) : ?> <h1 class="componentheading<?php echo $this->params->get('pageclass_sfx'); ?>"> <span class="right-bg clearfix"><span class="left-bg"> <?php echo $this->escape($this->params->get('page_title')); ?> </span></span> </h1> <?php endif; ?> </div>


But on the item.php I wanted the Category to be displayed at the top of the article the same way but when I use the same code in the item.php page, it gives me the title of the item/article and not the category:

www.joomgo.com/clients/monroeV3/ ... -messenger



What do I need to change in that code that I added to the item.php to make it display the category like it does on the category page?

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.343 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline