Hello,
I would like to have one custom tv type store an array of values. I created a custom tv type combo box using the wiki entry here: (
http://rtfm.modx.com/display/revolution20/Adding+a+Custom+TV+Type+-+MODX+2.2) and it works great.
Now I would like to get the number of children based off a parent and then loop through a unique combo box for each child. All within this one custom tv input. I would like to then store the values as an array.
How do I pass a parameter to the templateselectclass.php or would I passed it somewhere else?
<?php
class TemplateSelectInputRender extends modTemplateVarInputRender {
public function getTemplate() {
return $this->modx->getOption('core_path').'components/ourtvs/tv/input/tpl/templateselect.tpl';
}
public function process($value,array $params = array()) {
}
}
return 'TemplateSelectInputRender';