link to external url behaviour (why not going directly external?)

View: New views
9 Messages — Rating Filter:   Alert me  

link to external url behaviour (why not going directly external?)

by stefano cecere :: Rate this Message:

| View Threaded | Show Only this Message

since i had some problems with a "link to external url" menu (in a multilanguage, multidomain, reaurled site.. the links were not going "out" but always loaded the home page)

i was wandering: WHY shouldn't a "link to external URL" page have the extenal URL as direct link (instead of passing to it's typo3 ID page and then do the jump?

i could make it easily insert a custom PHP script in the HMENU generation.. but shouldn't it be a core option?


ciao
stefano
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: link to external url behaviour (why not going directly external?)

by Christopher Torgalson :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

On Sat, Jan 10, 2009 at 4:48 PM, stefano cecere <scecere@...> wrote:
> since i had some problems with a "link to external url" menu (in a multilanguage, multidomain, reaurled site.. the links were not going "out" but always loaded the home page)
>
> i was wandering: WHY shouldn't a "link to external URL" page have the extenal URL as direct link (instead of passing to it's typo3 ID page and then do the jump?
>
> i could make it easily insert a custom PHP script in the HMENU generation.. but shouldn't it be a core option?

It's simple in TS. Search this list--your question has been answered
several times.

--
Christopher Torgalson
http://www.typo3apprentice.com/
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Parent Message unknown Re: link to external url behaviour (why not going directly external?)

by Christopher Torgalson :: Rate this Message:

| View Threaded | Show Only this Message

On Sat, Jan 10, 2009 at 8:04 PM, Christopher Torgalson
<bedlamhotel@...> wrote:

> Hi,
>
> On Sat, Jan 10, 2009 at 4:48 PM, stefano cecere <scecere@...> wrote:
>> since i had some problems with a "link to external url" menu (in a multilanguage, multidomain, reaurled site.. the links were not going "out" but always loaded the home page)
>>
>> i was wandering: WHY shouldn't a "link to external URL" page have the extenal URL as direct link (instead of passing to it's typo3 ID page and then do the jump?
>>
>> i could make it easily insert a custom PHP script in the HMENU generation.. but shouldn't it be a core option?
>
> It's simple in TS. Search this list--your question has been answered
> several times.

Sorry, search the English list--it's been answered there.

--
Christopher Torgalson
http://www.typo3apprentice.com/
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: link to external url behaviour (why not going directly external?)

by stefano cecere :: Rate this Message:

| View Threaded | Show Only this Message

Christopher Torgalson wrote:

> Hi,
>
> On Sat, Jan 10, 2009 at 4:48 PM, stefano cecere <scecere@...> wrote:
>> since i had some problems with a "link to external url" menu (in a multilanguage, multidomain, reaurled site.. the links were not going "out" but always loaded the home page)
>>
>> i was wandering: WHY shouldn't a "link to external URL" page have the extenal URL as direct link (instead of passing to it's typo3 ID page and then do the jump?
>>
>> i could make it easily insert a custom PHP script in the HMENU generation.. but shouldn't it be a core option?
>
> It's simple in TS. Search this list--your question has been answered
> several times.

really so simple in TS?

i said that i could make it via a custom PHP script that i add to the NO MenuItems:

NO.allStdWrap.postUserFunc = user_functions->user_modifyToExternalUrl

where user_modifyToExternalUrl is:

<?php
class user_functions {
        function user_modifyToExternalUrl($content, $conf){

                // if link type is "external url" replace link to redirecting page with external url
                if($this->cObj->data['doktype'] == 3){
                        $content = preg_replace('/(<a[^>]*href=")[^"]*("[^>]*>)/','$1http://'.$this->cObj->data['url'].'$2', $content);
                }
        return $content;
        }
}
?>

what i ask is: why do these external links pass via the internal pages, and not show straight the external URL in the menus?
what is the advantage to have them working like they do now?

thanks!
stefano
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: link to external url behaviour (why not going directly external?)

by Steffen Kamper-3 :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

stefano cecere schrieb:
>
> what i ask is: why do these external links pass via the internal pages,
> and not show straight the external URL in the menus?
> what is the advantage to have them working like they do now?
>

simple: as it's a page you have also the URL to this page (which does
the redirect)

vg Steffen
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: link to external url behaviour (why not going directly external?)

by Martin Kutschker-7 :: Rate this Message:

| View Threaded | Show Only this Message

Steffen Kamper schrieb:

> Hi,
>
> stefano cecere schrieb:
>>
>> what i ask is: why do these external links pass via the internal
>> pages, and not show straight the external URL in the menus?
>> what is the advantage to have them working like they do now?
>>
>
> simple: as it's a page you have also the URL to this page (which does
> the redirect)

That doesn't explain much. The only advantage I can see is that you will
have the page hit logged in your web server statistics. If you don't
need this, you would be fine with a directed external URL in your menus
and inline links.

Masi
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: link to external url behaviour (why not going directly external?)

by Christopher Torgalson :: Rate this Message:

| View Threaded | Show Only this Message

On Sun, Jan 11, 2009 at 8:04 AM, stefano cecere <scecere@...> wrote:

> Christopher Torgalson wrote:
>> Hi,
>>
>> On Sat, Jan 10, 2009 at 4:48 PM, stefano cecere <scecere@...> wrote:
>>> since i had some problems with a "link to external url" menu (in a multilanguage, multidomain, reaurled site.. the links were not going "out" but always loaded the home page)
>>>
>>> i was wandering: WHY shouldn't a "link to external URL" page have the extenal URL as direct link (instead of passing to it's typo3 ID page and then do the jump?
>>>
>>> i could make it easily insert a custom PHP script in the HMENU generation.. but shouldn't it be a core option?
>>
>> It's simple in TS. Search this list--your question has been answered
>> several times.
>
> really so simple in TS?

Yes: http://support.typo3.org/snippets/c/105/ And unlike your user
function, with TS you don't have to build the link wrong and then fix
it--you can just do it right in the first place.



--
Christopher Torgalson
http://www.typo3apprentice.com/
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: link to external url behaviour (why not going directly external?)

by Dmitry Dulepov [typo3] :: Rate this Message:

| View Threaded | Show Only this Message

Hi!

stefano cecere wrote:
> since i had some problems with a "link to external url" menu (in a
> multilanguage, multidomain, reaurled site.. the links were not going
> "out" but always loaded the home page)
>
> i was wandering: WHY shouldn't a "link to external URL" page have the
> extenal URL as direct link (instead of passing to it's typo3 ID page and
> then do the jump?

Because of the statistics. TYPO3 can gather number of visits to each page (see config.stat) and show them in BE. This way you will know how many people click on the external links. It is helpful for "exit" pages.

--
Dmitry Dulepov
TYPO3 core team

Mr. Harris: People say that you were the last person to speak with Jordon...
            Is that true?
Cameron: I don't know. Are you asking me if people say I was the last person
            to talk to Jordon? Or are you asking me if I was the last person
            to talk to her?
Mr. Harris: I guess I'm asking if you were.
Cameron: I don't know.
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: link to external url behaviour (why not going directly external?)

by Patrick Gaumond-2 :: Rate this Message:

| View Threaded | Show Only this Message

Dmitry Dulepov wrote:

>> i was wondering: WHY shouldn't a "link to external URL" page have the
>> extenal URL as direct link (instead of passing to it's typo3 ID page and
>> then do the jump?
>
> Because of the statistics. TYPO3 can gather number of visits to each page (see config.stat) and show them in BE. This way you will know how many people click on the external links. It is helpful for "exit" pages.

Also permit to have the External Page visible in your Sitemap as if it
was a local one.

Patrick
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev