[TYPO3-english] Extbase Scheduler Task: Pagetitle for given PID

Jigal van Hemert jigal.van.hemert at typo3.org
Thu Jul 3 15:21:07 CEST 2014


Hi,

On 3-7-2014 13:53, amadeo Marketing & Design - Paul Garais wrote:
> Is there any alternative to get the page-title for a given ID in a
> scheduler task without using a big bunch of resources for a small task?

For example:

$page = \TYPO3\CMS\Backend\Utility\BackendUtility::getRecord('pages', $ID);

and if you want to get the title in a generic way (works for all tables 
with a TCA):

$title = 
\TYPO3\CMS\Backend\Utility\BackendUtility::getRecordTitle('pages', $page);


-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-english mailing list