Hi,
I’m looking at the custom TV tutorial
here but I have no idea why it works.
I can understand the first file and parts of the second file but I’m stuck. Here are some questions
---
xtype: ’modx-combo-template’
What does it mean?
Is this the part that loads the data from DB?
Are there any other examples available/documentation because I have no?
How can I change this to load information from a custom DB?
---
listeners: { ’select’: { fn:MODx.fireResourceFormChange, scope:this}}
After some test I manage to find that this line will make the SAVE button active. Are there any other things I should know?
---
If I create a custom TV that has 2 dropdown lists what would be the appropriate code? Would something like this work
<select id="tv{$tv->id}
a" name="tv{$tv->id}
a" class="combobox"></select>
<select id="tv{$tv->id}
b" name="tv{$tv->id}
b" class="combobox"></select>
---
The php file has this comment
// any other PHP i want here
What kind of php code would be added in there? Is this the place to load information from a custom table?
Thank you