Setting Custom Headers - Joomla 2.5

More
12 years 1 month ago #24070 by iamrobert
In Joomla 2.5 you can set custom page headers in the main menu.

In your menu item:
[attachment=1:36dlwokg]<!-- ia1 -->idea.png<!-- ia1 -->[/attachment:36dlwokg]

You can set it to "services" -
however it doesn't render in flexicontent...

As you need the following code:
Code:
<h1 class="title"> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>

Whereas flexicontent uses:
Code:
<h1 class="componentheading"> <?php echo $this->params->get('page_title'); ?> </h1>

So - is there anyway to solve it?

My problem:
[attachment=0:36dlwokg]<!-- ia0 -->flexicontent.png<!-- ia0 -->[/attachment:36dlwokg]
Attachments:

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

More
12 years 1 month ago #24083 by micker
you can use overwiding title directly in flexicontent (in type categorie and item)
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 1 month ago #24113 by iamrobert
Hi,

I solved it with this:
Code:
<?php // page header set in main menu if ($this->params->get('show_page_heading', 1)) : ?> <!-- Start page title --> <h1 class="title"> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1> <?php // flexicontent header elseif ($this->params->get( 'show_page_title', 1 ) && $this->params->get('show_page_heading')==0 && $this->params->get('page_title') != $this->category->title) : ?> <h1 class="title"> <?php echo $this->params->get('page_title'); ?> </h1> <!-- End page title --> <?php endif; ?>

Just think that it should be standard in flexicontent templates - as many people may try to change page title in the menu manager and it results in nothing.

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

More
12 years 1 month ago #24115 by micker
you modify witch file ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 1 month ago #24119 by ggppdk
I wanted to check this, thanks for pointing out ...


Menu parameters J1.5
show_page_title and page_title

were changed in J1.6-J2.5 to

show_page_heading and page_heading

Also the parameter pageclass_sfx was added

Which make senses, since having 2 titles was always confusing to the user anyway ...

I have opened an issue for this to fix

Regards


-- 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.851 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