[TYPO3-UG Dutch] constante frontendtemplate uitlezen in backend extensie

Ronald Wopereis woepwoep at gmail.com
Thu Jul 22 12:46:07 CEST 2010


hi Muriel, je kan de volgende optie gebruiken:
global $TSFE;
en dan staat je pageID in $TSFE->id
zie onderstaand voorbeeld.
hartelijke groeten Ronald

<?php

global $TSFE;

echo show_crumb($TSFE->id);

?>

<?php

function show_crumb($page_id) {

	$quote = "\"";
	$glyph = " > ";

	$res = "";
	
	// select the page
	$local_row = select_page($page_id);
	$parentid = $local_row['pid'];
	
	// if this is not the root page of this website then recursively find
the root page
	// next, print the glyph followed by the page title
	if ($parentid && $local_row['is_rootsite'] == 0) {
		$res .= show_crumb($parentid);
		$res .= $glyph;
	}
	$res .= page_title($page_id);
	return $res;
}



Op 21 juli 2010 19:16 schreef Muriel le Pair <typo3 at strangefruit.nl> het
volgende:

> Op 21-7-2010 17:59, Frans van der Veen[netcreators] schreef:
>
>> Muriel le Pair wrote:
>>
>>> Op 21-7-2010 17:40, Frans van der Veen[netcreators] schreef:
>>> Nee. Maar als iemand mij kan vertellen hoe ik uid van de huidige pagina
>>> uitlees als je op bewerk pagina klikt (dus in de BE), dan heb ik het
>>> werkend.
>>>
>>
>> De id wordt megegeven als get parameter 'id'. Die kun je uitlezen met
>> t3lib_div::_GP('id').
>>
>
> Nee, helaas dat werkt niet.
> Als ik $_GET in debug() stop dan krijg ik de volgende output (1 is het id
> nummer dat ik moet hebben):
>
> returnUrl       /typo3/sysext/cms/layout/db_layout.php?id=1
> edit            pages   1  edit
>
> --
> met vriendelijke groet,
>
> Muriel le Pair
> _______________________________________________
> TYPO3-UG-Dutch mailing list
> TYPO3-UG-Dutch at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch
>



-- 
Come and join me on Ecademy Club "Follow Me - learn how to become the Warren
Buffet of the Atttention Economy"
http://www.ecademy.com/account.php?op=signup&c=5591&xref=69061


More information about the TYPO3-UG-Dutch mailing list