Quote from: sottwell at Mar 29, 2010, 12:29 PMHow are you handling the assignment of the TVs to their respective templates? I just added this to SkinGraft, but that’s only with one template being installed ...
Well, you can see how the TVs are handled in the installer by viewing this
changeset.
Basically, the TV definition file (placed in the /install/assets/tvs/ folder) would look like this (note, some of my values are sheer gobblydegook) :
/**
* My Test TV
*
* My Description for my TV
*
* @category tv
* @name testTV
* @internal @caption My Test TV
* @internal @input_type richtext
* @internal @input_options x==1||y==2
* @internal @input_default x
* @internal @output_widget datagrid
* @internal @output_widget_params x=1&y=2&z=3
* @internal @lock_tv 1
* @internal @template_assignments MODxHost
* @internal @modx_category Test
*/
A comma-separated list of @template_assignments would assign that TV to each of those templates.