/ Published in: PHP
This snippet grabs the metadata from a single T3D file for display on a frontend page.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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; $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']; }