[TYPO3] redirect info

Martin S shieldfire at gmail.com
Sun Sep 16 17:33:18 CEST 2007


2007/9/16, Krystian Szymukowicz <"t33kRE.MO.VE."@re.mo.ve.prolabium.com>:
>
> Martin S wrote:
> > Is it possible to dynamically add a text depending on how a visitor has
> > reached a site?
> > Apparently some people still have an old URL (and links are pointing to
> an
> > old URL) and it would be nice if people reaching the old addy can be
> told to
> > update their address (if people reach www.x.org they told to upgrade
> their
> > address to www.y.org).
> >
>
> hello
>
> it is not problem to make it with conditions in TYPO3
>
> [hostname = *.x.org]
> temp.message = TEXT
> temp.message.value = Update your bookmarks to bleble
> [global]
>
> and then put temp.message somewhere in your template (preferably only at
> first page). Or add this message to some COA already being in tempalate.
>
> Be aware that if you will put this in all your templates then you will
> double your cache size in database.
>
>
> Consider to make it using only JavaScript. You can add content element
> HTML with following code:
>
> <script type="text/javascript">
>
> if(document.domain == 'www.x.org'){
> document.write('Update your bookmarks to bleble');
> }
>
> </script>




Thanks, I'll give it a try!

Regards,

Martin S


More information about the TYPO3-english mailing list