Keyword

Page Heading Is Now Showing Page Title Instead

More
6 months 3 days ago #174385 by Kathy
I noticed after updating to K2 v2.10.2 that menu items that have Show Page Heading set to Yes are now displaying the text from the page title instead of the Page Heading. Can anyone confirm and/or provide a fix?

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
6 months 2 days ago #174388 by Fotis
This is the intended use of that field and it was normalized in K2 v2.10.2.

If you don't want that heading override the default view's heading, simply remove it.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

More
6 months 9 hours ago #174402 by Kathy
Thank you for your response. I just want to confirm...please see my attached screenshot.
Attachments:

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
6 months 9 hours ago #174403 by Fotis
Page heading will replace the view title in the currently linked K2 content. So if you set Page Heading to anything for e.g. a K2 category, then the Page Heading value will replace the actual category title, which is the "view" title for this specific K2 content entity.

If you're NOT seeing the Page Heading, check if you have any K2 template overrides that may have removed the title (by default at the very top of each file). To verify, just compare with the default K2 template overrides in /components/com_k2/templates/.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

More
6 months 8 hours ago #174410 by Kathy
I temporarily switched to the Beez3 and Protostar templates (these do not have any K2 overrides) and still see the page TITLE displayed rather than the page HEADING.

I also noticed that this issue is only occurring with menu items of "K2 » Item listings » Categories" type.
Page HEADING displays correctly for menu items that are "K2 » Item » Item".

Any thoughts?

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
6 months 7 hours ago #174412 by Fotis
Are you linking to multiple or a single K2 category?

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

More
6 months 7 hours ago #174414 by Kathy
Just one single K2 category.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
6 months 6 hours ago #174415 by Fotis
I'm seeing an inconsistency to be exact. There IS the page title that gets printed at the top of the page (as before - I'll fix that) but the page heading option will replace the category name after that. So just make sure the category name shows in the related category options.

Alternatively, I can provide you with the code to re-instate the page heading wherever you like.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

More
6 months 5 hours ago #174416 by Kathy
Yes, please provide the code for displaying the page heading. Thank you!

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
5 months 4 weeks ago - 5 months 4 weeks ago #174422 by Fotis
At the top of your category.php override, you should see something like this:
    <?php if ($this->params->get('show_page_title')): ?>
    <!-- Page title -->
    <div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
        <?php echo $this->escape($this->params->get('page_title')); ?>
    </div>
    <?php endif; ?>

Now change it to this, so the Page Heading can actually be printed instead of the menu item title:
    <?php if ($this->params->get('show_page_title')): ?>
    <!-- Page title -->
    <div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
        <?php $title = ($this->params->get('page_heading')) ? $this->params->get('page_heading') : $this->params->get('page_title'); ?>
        <?php echo $this->escape($title); ?>
    </div>
    <?php endif; ?>

Let me know.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member
Last edit: 5 months 4 weeks ago by Fotis. Reason: Fixed code typo

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


Powered by Kunena Forum