I'm following the documentation at
http://rtfm.modx.com/display/revolution20/Adding+a+Custom+TV+Type+-+MODX+2.2 to create a custom template variable. This doc gets me to the point where I have a functioning TV where I can control how it is input and output, everything I really need. The last piece of the puzzle for me is to get a user-friendly name to display in the combo box of the "Input Options" tab when editing a template variable.
Finally I was able to get a friendly name by adding a call to addLexiconTopic in the plugin:
case 'OnTVInputRenderList':
$modx->controller->addLexiconTopic('mycmp:default');
$modx->event->output($corePath.'tv/input/');
Where there is an entry for "mytv" in this lexicon topic that is assigned my friendly name. I feel like there should be a different way to do this, specifically something like overriding the modTemplateVarInputRender::getLexiconTopics() function in the file "mytv.class.php" and returning the same lexicon topic.
Is this the way this should be done? Is this functionality not really completed yet? Any ideas?