Return to Snippet

Revision: 6553
at May 30, 2008 09:36 by jsegars


Updated Code
global $TYPO3_CONF_VARS;

require_once(t3lib_extMgm::extPath('impexp').'class.tx_impexp.php');

$import = t3lib_div::makeInstance('tx_impexp');
$import->init(0,'import');
$import->enableLogging = TRUE;

if (@is_file($filename) && $import->loadFile($filename,0))	{
	$data = $import->dat;
	
	$title = $data['header']['meta']['title'];
	$description = $data['header']['meta']['description'];
	$notes = $data['header']['meta']['notes'];
	$packager_username = $data['header']['meta']['packager_username'];
	$packager_name = $data['header']['meta']['packager_name'];
	$packager_email = $data['header']['meta']['packager_email'];
}

Revision: 6552
at May 30, 2008 09:24 by jsegars


Initial Code
global $TYPO3_CONF_VARS;

require_once(t3lib_extMgm::extPath('impexp').'class.tx_impexp.php');

$import = t3lib_div::makeInstance('tx_impexp');
$import->init(0,'import');
$import->enableLogging = TRUE;

if (@is_file($filename) && $import->loadFile($filename,0))	{
	$data = $import->dat;
	
	$title = $data['header']['meta']['title'];
	$description = $data['header']['meta']['description'];
	$notes = $data['header']['meta']['notes'];
	$packager_username = $data['header']['meta']['packager_username'];
	$packager_name = $data['header']['meta']['packager_name'];
	$packager_email = $data['header']['meta']['packager_email'];
}

Initial URL

                                

Initial Description
This snippet grabs the metadata from a single T3D file for display on a frontend page.

Initial Title
Extracting Data from a T3D File

Initial Tags

                                

Initial Language
PHP