We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • http://modxcms.com/blog-publish.html

    I think that we need to explain that it is important to prepend the tv name with "tv" when calling it, or it won’t work. That caught me for half an hour or more...

    Why the heck do we need to do that, btw?
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 18397
      • 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
          • 32963
          • 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>
            xWisdom
            www.xwisdomhtml.com
            The fear of the Lord is the beginning of wisdom:
            MODx Co-Founder - Create and do more with less.
          • 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