[TYPO3] redirect info

Krystian Szymukowicz t33kRE.MO.VE. at RE.MO.VE.prolabium.com
Sun Sep 16 09:37:58 CEST 2007


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>


--
greetings
Krystian Szymukowicz


More information about the TYPO3-english mailing list