Quote from: sottwell at Jan 22, 2011, 01:51 AM
This is very similar to (in fact, I’m pretty sure it’s based on) the patches that were made for 1.0.3 and 1.0.4 and are discussed here http://modxcms.com/forums/index.php/topic,49153.0.html and a video here http://www.youtube.com/watch?v=SUbM_D2GT4s
Peter’s code and the new TV code (and even Brett florio’s code) all address the same problems, for sure.
The main difference between Peter’s code and the new custom tv is:
- Peter’s code required your new TV to be /assets/tvs and it had to be a class that followed a certain interface.
- The new custom_tvs - the world is your oyster. Put your INCLUDEd file anywhere and it can do anything you like. In fact you can probably re-use Peter’s solution with a little modification.
The main reason this code was created was for a json/multi TV. But the way Mike Schell and yama implemented it really allows for very beautiful UI options.
Hey Max and Susan,
I tried to create how the custom tvs could be used for a typical client. So here’s the link:
http://thecmspros.com/2011/02/custom-template-variables-in-evolution-1-5/
-
☆ A M B ☆
- 24,524 Posts
Thank you! This is really great
-
☆ A M B ☆
- 24,524 Posts
Yes. Consider the custom TV as nothing more nor less than a container for your custom application. The big deal is that each resource will have the application. Almost like having Jot installed on each resource, only better.
You could actually take the markup from Kunane’s plugin and convert it into a reusable TV
ChuckTrukk - Thanks for putting together those awesome screencasts. I’m sure they’ll be a massive help for a lot of people (myself included).
Has anyone had any success converting Temus’s MultiPhoto plugin that they’d like to share? Being able to sort and add/delete repeats of a TV would be such a useful feature, especially for clients. I have tried hacking the MultiPhoto plugin itself but am struggling to produce something I’m happy with.
I had a very quick attempt at converting the MultiPhoto plugin to the new customTV format, and failed, but to be honest I wasn’t really sure how it worked.
Thanks to ChuckTrukk’s tutorial, I have now managed to create a customTV that enables selecting/ordering chunks from a given category for display in a sidebar.
When I get the time I’ll have another look at integrating the MultiPhoto idea.