[Typo3] Back link?
Christopher
bedlamhotel at gmail.com
Thu Aug 18 20:15:31 CEST 2005
Hi,
There may be an all-Typoscript solution to this (I couldn't think one up though), but you can use TS and a bit (one line!) of php scripting to get this kind of link:
Typoscript parts:
==============================
### Include the file with any php functions necessary into the page:
page.includeLibs.library = fileadmin/scripts/userFunctionLibrary.inc
### Then create a typolink using the output of a php function:
###
### For more information on the stdWrap property 'preUserFunc', see the TSref:
### http://typo3.org/documentation/document-library/doc_core_tsref/stdWrap/
### And for more information on the 'typolink' function, see the TSref again:
### http://typo3.org/documentation/document-library/doc_core_tsref/typolink/
lib.backLink = HTML
lib.backLink {
value = « Previous Page
value.typolink.parameter.preUserFunc = user_referer
}
PHP Parts:
==============================
<?php
// Not much to this; get the http referer using the appropriate Typo3 API function.
// For more information about the getIndpEnv() function - and the reasons for using it - see the API docs:
//http://typo3.org/documentation/document-library/doc_core_api/High_priority_functi/
function user_referer() {
$content = t3lib_div::getIndpEnv('HTTP_REFERER');
return $content;
}
?>
- Christopher
-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110134394/
More information about the TYPO3-english
mailing list