[Typo3-UG Oesterreich] Automatisches Weiterleiten nach x Sekunden

media.res | alex widschwendter a.widschwendter at mediares.at
Wed Aug 3 19:28:49 CEST 2005


hi,

> Danke für eure Tipps, ich kenn die Möglichkeiten, nur habe ich dasselbe
> Problem wie wenn ichs als HTML hardcode.
> 
> Nochmal:
> Ich möchte gerne auf eine Unterseite hüpfen, also zum Beispiel
> http://www.myhost.at/index.php?id=12, welche die erste Unterseite
> darstellen soll.

create file custom_functions.php mit folgendem inhalt:

require_once(PATH_t3lib."class.t3lib_page.php");
class user_functions {

	function getFirstSubpage () {
		$pageObj = t3lib_div::makeInstance('t3lib_pageSelect');
		$pages = $pageObj->getMenu($GLOBALS['TSFE']->id);
		
		$firstSubpageId = key($pages);
		
		return 'href="index.php?id='.$firstSubpageId.'"'; // return den
korrekten meta tag
	}
}

im template inkludieren
page.includeLibs.custom_functions = your/path/custom_functions.inc


temp.metarefresh = USER
temp.metarefresh.userFunc = user_functions->getFirstSubpage

page.headerData.10  < temp.metarefresh

hth alex

thx ;)
http://www.amazon.de/exec/obidos/registry/303J0MOEPDLHI/ref%3Dwl%5Fem%5Fto/302-4889268-4487266



More information about the TYPO3-at mailing list