SOLVED: Set Page Title By Menu Item Name
3 posts
• Page 1 of 1
SOLVED: Set Page Title By Menu Item Name
Xmap is a great component at all. it's perfect !!
also i tested it by VirtueMart.
there is only one problem i see that you can easily solve it by this change in function endOutput:
in /component/com_xmap/xmap.html.php
also i tested it by VirtueMart.
there is only one problem i see that you can easily solve it by this change in function endOutput:
in /component/com_xmap/xmap.html.php
- Code: Select all
function endOutput(&$menus) {
//added $mainframe, $menu for support page title - Jack 15 April 2008
global $database, $Itemid, $mainframe, $menu;
$sitemap = &$this->sitemap;
echo '<div style="clear:left"></div>';
//BEGIN: Advertisement
if( $sitemap->includelink ) {
echo "<div style="text-align:center;"><a href="http://joomla.vargas.co.cr" style="font-size:10px;">Powered by Xmap!</a></div>";
}
//END: Advertisement
echo "</div>";
echo "</div>
";
//added for support page title - Jack 15 April 2008
$mainframe->SetPageTitle($menu->name);
}
- jack_t
- Fresh Boarder

- Posts: 2
- Joined: Tue Apr 15, 2008 10:03 pm
Re:SOLVED: Set Page Title By Menu Item Name
Hi Jack, thanks for your posting, but I don't understand, what is this for? Which is the difference with and without your patch?
Thanks again!
Thanks again!
-

guilleva - Administrator

- Posts: 1517
- Joined: Wed Sep 12, 2007 3:10 am
- Location: San José, Costa Rica
Re:SOLVED: Set Page Title By Menu Item Name
Hi guilleva.
after i installed latest version of xmap i saw that there is no html page title for xmap page in joomla.
i mean when you are going to sitemap page, joomla does not show any title for that(it comes from menu title). so i added this patch to add menu item name for xmap as a page title in joomla manner.
and that's it !
after i installed latest version of xmap i saw that there is no html page title for xmap page in joomla.
i mean when you are going to sitemap page, joomla does not show any title for that(it comes from menu title). so i added this patch to add menu item name for xmap as a page title in joomla manner.
and that's it !
- jack_t
- Fresh Boarder

- Posts: 2
- Joined: Tue Apr 15, 2008 10:03 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest