- Posts: 32
COMMUNITY FORUM
Page Heading not showing in k2
- Mike Economou
-
Topic Author
- Offline
- Junior Member
I have this wierd problem,
I cannot set the Page Heading to be displayed.
In menu item, I have :
Show Page Heading : YES
Page Heading : My Title
If I create a joomla article the page heading displays fine
but in k2 articles not.
Any ideas ?
thanx
Please Log in or Create an account to join the conversation.
- Mr_Anonymous
-
- Offline
- Premium Member
- Posts: 92
Please Log in or Create an account to join the conversation.
- Mike Economou
-
Topic Author
- Offline
- Junior Member
- Posts: 32
I can see the code in the template file (category.php), but is not working :
Log in or Create an account to join the conversation.
- Charlie
-
- Offline
- Junior Member
- Posts: 20
Please Log in or Create an account to join the conversation.
- Mike Economou
-
Topic Author
- Offline
- Junior Member
- Posts: 32
Charlie wrote: Or under category, "category view options" make sure all of the buttons in the first section say show.
Yes,
everything is set to show,
but... nothing
only subcategory is set to hide
Please Log in or Create an account to join the conversation.
- Charlie
-
- Offline
- Junior Member
- Posts: 20
video
This should get you through it. K2, love it, lots of configurations.
Please Log in or Create an account to join the conversation.
- Mike Economou
-
Topic Author
- Offline
- Junior Member
- Posts: 32
but my priority is to display the page heading as I say in my first post.
The page title that I set in the menu "Page Display" options
And then the category block sais in that video.
thank you
Please Log in or Create an account to join the conversation.
- Mike Economou
-
Topic Author
- Offline
- Junior Member
- Posts: 32
2. or I am to stupid after 10 years using joomla and I cannot display the page title ?
Because if no one can answer there must be one of theese 2 ...
8a trela8oume nomizw
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
The items will not display the page heading. You need to paste the snippet you pasted earlier in the item.php file.
The category.php file is being used only for the categories.
Please Log in or Create an account to join the conversation.
- Mike Economou
-
Topic Author
- Offline
- Junior Member
- Posts: 32
thank you !
Please Log in or Create an account to join the conversation.
- Mike Economou
-
Topic Author
- Offline
- Junior Member
- Posts: 32
Mixahlos wrote: Than you for your answer but I prefer to display the page heading.
I can see the code in the template file (category.php), but is not working :
Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
This can be used in your index.php file as well
$active = $menu->getActive();
if ($active) {
$pageHeading = $active->params->get('page_heading');
}
example
<?php if(!empty($pageHeading)): ?>
<div class="componentheading">
<?php echo $pageHeading; ?>
</div>
<?php endif; ?>
Please Log in or Create an account to join the conversation.