-
☆ A M B ☆
- 24,524 Posts
<sigh> and I still haven't figured out Template Variables...

ops:
The only question I've got about the system events is how do we control which ones get executed in what order? Could there be a potential for conflict?
Plugins are executed on a first come first serve basis. There will be no conflict whatsoever. In future versions we could implement high top-level plugins that are forced to the top of the event execution queque.
On second thought it's even possible now to force your plugin at the top of the queque by listening to the OnBeforeCacheUpdate event and a few php scripts

It's very powerful when you look at what can be done.
This is great stuff -- now, how about triggering plugins from front-end events?
OpenGeek you have not seen anything yet

The new TV controls will be able to invoke custom events on the system.
With my object abstraction project, we may eventually be able to call events on specific core and user-defined objects, but I was actually conceiving of a Javascript API to allow triggering plugins from DOM events (e.g. onClick, onLoad, etc.).
Once I start working on the next version of the TVs you'll see what alking about
The power is yours - lol
<sigh> and I still haven't figured out Template Variables...
ops:
Well for your TV all you have to do is press the power button and you're good to go
Here's a preview of the debug screen:
-
☆ A M B ☆
- 24,524 Posts
Well for your TV all you have to do is press the power button and you're good to go 
Umm...I don't have a TV. :shock: (Really, I don't.)
But as far as Template Variables go, I'm still having trouble seeing where these aren't just fancy chunks. I make a snippet to do what I want, then make a chunk to put it where I want it. If it's something really complicated, the snippet just includes the external .php file that does whatever complicated thing I want to do. I really don't see where TVs do any more than that. What am I missing?
-
MODX Staff
- 12,272 Posts
Susan,
You're pretty right on in your description, but the beauty of TVs is it takes all the complexity of comping up with what you're talking about and hides it from the end user. A lot of really cool things can be very easily done with TVs as well.
You also get multiple content areas per page with TVs, making it easier for non-HTML-proficient people be able to edit a page wihtout messing up the code.
They're a productivity boosting lifesaver, really!
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me