Keyword

Page Heading not showing in k2

  • Mike Economou
  • Mike Economou's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 1 week ago #132098 by Mike Economou
Replied by Mike Economou on topic Re: Page Heading not showing in k2

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 week ago #132099 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Page Heading not showing in k2
You can try this snippet to echo the page heading,
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; ?>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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