rx2 Reply #1, 2 years, 1 month ago
Quote from: garryn at Mar 29, 2010, 11:53 AM
Excellent. How do we find out the name of the input types? For example I want to install a number of TVs we use for blogging. One allows the user to select how many recent articles are shown:
This is a drop down list menu. But what is the name of that input type for this? It's probably not drop as indicated below. Is there documentation about what each list type is called?
Also I added this:
As it was not in your original description. Is that valid as well? We have about 30 TVs to create in this manner so we want to get it right.
Quote from: sottwell at Mar 29, 2010, 07:29 AMHow 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.
Excellent. How do we find out the name of the input types? For example I want to install a number of TVs we use for blogging. One allows the user to select how many recent articles are shown:
/** * Articles Summary * * Summary Count for Articles * * @category tv * @name articlesummaries * @internal @caption Article Summaries * @internal @description How Many Articles Summaries Per Page? * @internal @input_type drop * @internal @input_options 1||2||3||4||5||6||7||8||9||10||11||12||13||14||15||16||17||18||19||20 * @internal @input_default 3 * @internal @output_widget * @internal @output_widget_params * @internal @lock_tv * @internal @template_assignments blog-index,Blog,Video Blog * @internal @modx_category Ditto */
This is a drop down list menu. But what is the name of that input type for this? It's probably not drop as indicated below. Is there documentation about what each list type is called?
* @internal @input_type drop
Also I added this:
* @internal @description How Many Articles Summaries Per Page?
As it was not in your original description. Is that valid as well? We have about 30 TVs to create in this manner so we want to get it right.