Cast Iron Coding, Inc

TYPO3 Admin's Corner

Click here to return to the TYPO3 Admin's Corner

Stay Connected

Complete the form below to sign up for the CIC newsletter. We send out about one message each month and we do our best to make sure it's full of useful information about TYPO3. We'll never share your email address with a third-party and should you ever change your mind, unsubscribing is a breeze.
TypoScript Techniques

Configuring Extension Output with TypoScript for Extensibility and Reusability

By: Lucas Thurston

Say that you want to query a different table though. Do the same as above, but overwrite the getRecords() method in the child extension and write your TypoScript and HTML template, and you're done.

  This is a ridiculously simple example, and often there are times when additional PHP is required to process database values into output. Why not check to see if there's a special method for rendering a given field. Instead of this line in our getMarkerArrays() method:
 

  Try this:
 

Pass the cObj type, the cObj configuration and the cObj instance itself (which should be picked up by reference in the called method).
I hope you find this useful. Let me know what you think.

Posted on Thursday, September 27, 2007 at 05:20 PM.