Keyword

Page Heading Is Now Showing Page Title Instead

More
4 years 10 months 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.

More
4 years 10 months ago #174388 by JoomlaWorks
Replied by JoomlaWorks on topic Page Heading Is Now Showing Page Title Instead
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.

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

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

More
4 years 10 months 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.

More
4 years 10 months ago #174403 by JoomlaWorks
Replied by JoomlaWorks on topic Page Heading Is Now Showing Page Title Instead
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/.

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

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

More
4 years 10 months 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.

More
4 years 10 months ago #174412 by JoomlaWorks
Replied by JoomlaWorks on topic Page Heading Is Now Showing Page Title Instead
Are you linking to multiple or a single K2 category?

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

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

More
4 years 10 months ago #174414 by Kathy
Just one single K2 category.

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

More
4 years 10 months ago #174415 by JoomlaWorks
Replied by JoomlaWorks on topic Page Heading Is Now Showing Page Title Instead
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.

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

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

More
4 years 10 months 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.

More
4 years 10 months ago - 4 years 10 months ago #174422 by JoomlaWorks
Replied by JoomlaWorks on topic Page Heading Is Now Showing Page Title Instead
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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 4 years 10 months ago by JoomlaWorks. Reason: Fixed code typo

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


Powered by Kunena Forum