Cast Iron Coding, LLC
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 06:20 PM.