Text for the page heading

GK User
Fri Aug 21, 2015 1:04 pm
Hi, I'm working locally with Photo template joomla 3. I am trying to show items in the page header. To do this I leave to "Yes" the menu item as shown in the picture, but ignores the items never show the page header.
Can you help please.
Thanks in advance.
User avatar
Senior Boarder

teitbite
Sun Aug 23, 2015 6:36 pm
Hi

It's really hard to tell. Can You please upload site online so I will be able to check ?
User avatar
Moderator

GK User
Wed Aug 26, 2015 11:37 pm
Ok, I posted the website. You can view the link below is the "Yes" Show page heading: http://www.avivaweb.com/es/marketing-online.html

On the header text is not displayed. How I have to do to be displayed?

greeting,
User avatar
Senior Boarder

teitbite
Sat Aug 29, 2015 3:27 pm
Hi

Which page exactly You have this problem with ? On frontpage whole mainbody is disabled, so it will not show there. Please tell me the url and send me an access to joomla panel so I'll check.
User avatar
Moderator

GK User
Sun Aug 30, 2015 4:47 pm
Hi, I think I left nothing for each menu item show your page header.
The image "item" corresponds to the following url: http://www.avivaweb.com/es/marketing-online.html As you can see the page header is displayed.
what can I do?
User avatar
Senior Boarder

teitbite
Tue Sep 01, 2015 10:26 am
Hi

This setting is not the only place affecting showing page title. Please send me an access to joomla panel.
User avatar
Moderator

GK User
Wed Sep 09, 2015 10:31 am
hello I sent a private message.
Have you received it?
A greeting,
User avatar
Senior Boarder

teitbite
Thu Sep 10, 2015 11:19 am
Hi

No, sorry. I cannot see any message from You in my PM. Please send it one more time.
User avatar
Moderator

GK User
Tue Sep 15, 2015 3:46 pm
Hello I sent you back
Thank you.
User avatar
Senior Boarder

teitbite
Tue Sep 15, 2015 8:31 pm
Hi

Which pages You have this problem with ? I'm clicking through Your site and cannot see missing headers. Tell me just one link to an example where this is not working.
User avatar
Moderator

GK User
Wed Sep 16, 2015 11:59 am
Hello,
The problem exists in all articles of my site. I put a header on each of the menu items but nowhere I entered the header in the menu item appears.

Go to my site and if you look closely at all the menu items I have introduced a header to display it in my articles. But it does not work.

As an example you have this url: http://www.avivaweb.com/es/marketing-online.html
In the previous post I attached pictures that can be seen perfectly
Any solution?
User avatar
Senior Boarder

GK User
Fri Sep 18, 2015 3:56 pm
Any help? :roll:
User avatar
Senior Boarder

teitbite
Sun Sep 20, 2015 11:29 am
Hi

I have added code:

Code: Select all
   <?php if ($this->params->get('show_page_heading')) : ?>
   <div class="page-header">
      <h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
   </div>
   <?php endif;


to /html/com_content/article/default.php. Please check if this worked.
User avatar
Moderator

GK User
Fri Oct 23, 2015 11:50 pm
Hello again. In the articles it worked perfectly.
Now what happens is that I can not choose whether I want to be displayed or not, all items shown.
In some articles, for example in my blog, I do not want the header of the page is displayed. If I access the menu item in the Option: Show page header and the header selected does not always displayed and do not want to be displayed in this menu item.
What can I do?
Thank you for your help.
User avatar
Senior Boarder

teitbite
Sun Oct 25, 2015 4:44 pm
Hi

You need to configure it in category settings or in menu item settings. This line:

Code: Select all
<?php if ($this->params->get('show_page_heading')) : ?>


insures that it only displays when it's asked in settings.
User avatar
Moderator

GK User
Sun Nov 22, 2015 5:24 pm
That is the file I have to change?
Where is this line? :unsure:
Thank you,
User avatar
Senior Boarder

teitbite
Tue Nov 24, 2015 12:17 pm
Hi

No no no. You do not need to edit any file. I just mean that the condition in code is:

Code: Select all
<?php if ($this->params->get('show_page_heading')) : ?>


which means that settings to allow showing page heading has to be enabled in menu item, article or in category settings (or all of them at the same time).



But if You want to simply force it with a code modification than edit file /html/com_content/article/default.php and replace code:

Code: Select all
   <?php if ($this->params->get('show_page_heading')) : ?>
   <div class="page-header">
      <h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
   </div>
   <?php endif;


with:

Code: Select all
   <div class="page-header">
      <h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
   </div>
User avatar
Moderator


cron