FC2 - page heading is always displayed

6 years 3 months ago #28187 by Rehne

ggppdk wrote: About page title
In J1.6+ the menu item parameter for show_page_title, was changed to show_page_heading, you could check view.html.php to see how this is created, search for show_page_heading


oh dear ... i probably forgot to adjust this
when converting the FC1.5 templates (J1.5) to FC2 (J2.5)
this one
($this->params->get( 'show_page_title', 1 )
must be
if ($this->params->get( 'show_page_heading', 1 )

also the rest should be adjusted, to be compliant with Joomla 2.5 (in the standard FC2 Templates too)

this one
... && $this->params->get('page_title') != $this->category->title)
should be
... && $this->escape($this->params->get('page_heading')) != $this->category->title)

and
<h1 class="componentheading">
<?php echo $this->params->get('page_title'); ?>
should be
<h1 class="componentheading">
<?php echo $this->escape($this->params->get('page_heading')); ?>

thats it

thanks again for your great help

Regards

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

6 years 3 months ago #28193 by ggppdk
Thanks Rehne,
i think maybe it will be best to set both

show_page_heading, show_page_title

and

show_page_title, page_title

to avoid problems with people migrating to FLEXIcontent J2.5 while having old custom template


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

6 years 3 months ago #28199 by Rehne
ok ... i've seen, you've already made
super :)

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.