Viernes, 24 Octubre 2014 11:22
beggarly

SOLVED: Set Page Title By Menu Item Name

Report Xmap bugs on this forum.

SOLVED: Set Page Title By Menu Item Name

Postby jack_t » Tue Apr 15, 2008 9:14 pm

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
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
Fresh Boarder
 
Posts: 2
Joined: Tue Apr 15, 2008 10:03 pm

Re:SOLVED: Set Page Title By Menu Item Name

Postby guilleva » Sat Apr 19, 2008 5:18 pm

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!
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re:SOLVED: Set Page Title By Menu Item Name

Postby jack_t » Sun Apr 20, 2008 2:39 am

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 !
jack_t
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Tue Apr 15, 2008 10:03 pm


Return to Bugs



Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 1 guest