Thread:Skin talk:Chameleon/TOC as component type/reply

Yes, that should be all that's needed. Although the type and the file name and the class name should all be the same, e.g. TableOfContents in your case. Just make TableOfContents a subclass of Component.php and implement the getHtml method. Have a look at Silent.php for a minimal implementation.