[TYPO3-UG US] How typo3 generates links <a href=

Michael Cannon michael at cannonbose.com
Wed Feb 27 15:31:22 CET 2008


The extension itself has an error in the loc property prior to the xml
createElement method.

I'm actually using mc_googlesitemap though for Cannonbose.

I made a fix around line 232 in class.tx_mcgooglesitemap_base.php

--
                $tema['page']=$this->elcHash($row['uid'],array(),0);
                // MLC 20080215 preg match for https as well
                if ( ! preg_match( '#https?://#', $tema['page'] ) ) {

$tema['loc']=htmlspecialchars(utf8_encode($this->baseUrl.$tema['page']));
                    $tema['loc']=preg_replace( '#//$#', '/', $tema['loc'] );
                } else {
                    $tema['loc']=htmlspecialchars(utf8_encode($tema['page']));
                }
--


On Mon, Feb 25, 2008 at 4:41 PM, Finees Mendez <fineesmendez at yahoo.com> wrote:
> Hi typo3 heads!
>
>
>
>  How can I change the way typo3 generates links. For example, my t3
>  menus that link to the homepage are
>
>
>
>  Why I need this?
>
>
>
>  For the use of the google_sitemap extension, the xml menu displays the
>  homepage as ="/" and not ="www.mydomain.com" and therefore google is
>  telling me this is an error. But I realized that this is the case for
>  all links (homepage links) that are typo3 generates. Thanks again.
>
>
>
>  Thank you.
>
>
>
>
>
>
>       ____________________________________________________________________________________
>  Never miss a thing.  Make Yahoo your home page.
>  http://www.yahoo.com/r/hs
>  _______________________________________________
>  TYPO3-UG-US mailing list
>  TYPO3-UG-US at lists.netfielders.de
>  http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-us
>



-- 
Michael Cannon
President of Cannonbose, LLC
+1 (800) 559-9773  |  +1 (603) 559-9773  |  Fax : +1 (802) 609-2776


More information about the TYPO3-UG-US mailing list