-
- 3,250 Posts
This was explained in that bit of documentation that came out with TP3.2 about the new snippets.
Correct, but it’s not in our current online documentation and if someone as familiar as I am with the system gets tripped up, then it’s an issue that bears repeating. A lot.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
- 1,732 Posts
Quote from: rthrash at Nov 29, 2005, 09:47 PM
Why the heck do we need to do that, btw?
Namespace? Without the "tv" prefix existing Widgets could conflict with other HTML element on a page that uses the same name. For example:
A regular form field
<input id="age" name="age" type="text" />
An auto generated TV widget
<div id="age">Some TV stuff here</div>
Right, and I definitely understand... but the part that is slightly confusing is that calling with the News Publisher "tvblogContent" actually uses the tv "blogContent".
To make matters more confusing, the News Publisher when called incorrectly with tvname=`blogContent` renders a nice RTE instance. When you hit the submit button, it just empties the RTE instance and stays on the page. When you call it with `tvblogContent` it both renders and actually makes a submission.
We probably need better error checking in that regard to prevent confusion. Like I said, if I got confused on it, a newer user will ask ALL sorts of questions.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me