MODX Cloud

The Most Productive MODX Learning Playground Ever

Claim Free Lab Account

Adding a Custom TV Input Type

Version 1 by Shaun McCormick
on Jun 23, 2010 08:47.

compared with
Current by Mark Hamstra
on Jul 09, 2012 08:10.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (5)

View Page History
\\

{warning:title=Only use this documentation for pre-2.2 or core submissions. }Refer to the [Adding a Custom TV Type|revolution20:Adding a Custom TV Type - MODX 2.2] doc for the proper way to build custom TVs in 2.2 which allows easy packaging. {warning}\\
h2. What are Custom TV Input Types?

I'd first need 2 files:

* *An input controller* - \- put here: core/model/modx/processors/element/tv/renders/mgr/input/test.php
* *An input template* - \- put here: manager/templates/default/element/tv/renders/input/test.tpl

The input controller, test.php, would have:
{code}

And there you go\! A custom TV input type.

!customtv1.png!