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

Finees Mendez fineesmendez at yahoo.com
Sat Mar 1 15:23:28 CET 2008


What about the default Cannonbose RealUrl extension script. For example, the property "emptyUrlReturnValue", as show below,  if temporarily removed, the mc_googlesitemap extension generates the homepage url correctly (i.e. www.domain.com); but all typo links pointing to the homepage are now generated as 

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    'init' => array( 
        'emptyUrlReturnValue' => '/'
    .......
    )   
.........

In any case, I modified the script as you suggested, and the mc_googlesitemap extension now produces the home link accordingly. Thank you. But is it possible to have t3 generate the typolinks for the home page as [ href="http://www.mydomain.com/" ] instead of just [ href="/" ]

Someone suggested using [ config.AbsRefPrefix = http://www.mydomain.com ], but upon activation of this script, the RealUrl extension is ignored/turn off, and all links are back to ".../index.php?id=....", of course followed by "http://www.mydomain.com"

Thank you. Finees.

----- Original Message ----
From: Michael Cannon <michael at cannonbose.com>
To: TYPO3 Usergroup America <typo3-ug-us at lists.netfielders.de>
Sent: Wednesday, February 27, 2008 9:31:22 AM
Subject: Re: [TYPO3-UG US] How typo3 generates links <a href=

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
_______________________________________________
TYPO3-UG-US mailing list
TYPO3-UG-US at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-us






      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


More information about the TYPO3-UG-US mailing list