FC2 - page heading is always displayed

More
11 years 6 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
Code:
($this->params->get( 'show_page_title', 1 )
must be
Code:
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
Code:
... && $this->params->get('page_title') != $this->category->title)
should be
Code:
... && $this->escape($this->params->get('page_heading')) != $this->category->title)

and
Code:
<h1 class="componentheading"> <?php echo $this->params->get('page_title'); ?>
should be
Code:
<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.

More
11 years 6 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...

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

More
11 years 6 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
Time to create page: 0.263 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline