We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    Is there any way to set a tv using the new NewsPublisher?
      • 32963
      • 1,732 Posts
      Quote from: Mark at Aug 23, 2005, 06:14 PM

      Is there any way to set a tv using the new NewsPublisher?

      You mean the set the value of a TV?
        xWisdom
        www.xwisdomhtml.com
        The fear of the Lord is the beginning of wisdom:
        MODx Co-Founder - Create and do more with less.
        • 18397
        • 3,250 Posts
        Yeah.
          • 32963
          • 1,732 Posts
          Quote from: Mark at Aug 23, 2005, 06:24 PM

          Yeah.

          It currently does not but you can modify it to do so.

          It’s best to make a copy of the snippet and give it a new name to prevent upgrade problems
            xWisdom
            www.xwisdomhtml.com
            The fear of the Lord is the beginning of wisdom:
            MODx Co-Founder - Create and do more with less.
            • 29635
            • 361 Posts
            In attempting to figure this out, I’ve hit a bit of a stumbling block. There doesn’t seem to be an API function to write to a TV? I see that there is a $modx->putChunk, and I thought there’d be something similar for TVs, but I don’t see anything in the documentation or in the document.parser file. I’m guessing I’m wrong, as I almost always am.

            Thinking that perhaps TVs can just be added with the regular document info (like longtitle, alias, etc.), I tried adding the TV values along with the other values in the $flds array (around line 190), but can’t get anything going there either.

            Any advice on which direction to go to get this working? Thanks for any help!
            Brett
              Need MODx Ecommerce? Try FoxyCart!
              • 25663 MODX Staff
              • 12,272 Posts
              Hi Brett,

              Unfortunately at this time there is no API for writing to TVs as you’ve discovered. You’ll need to create a query via the DB API in order to do it.

              However, this would be a great time to log a request to the bugtracker for just such a function as we’re in that "mode" right now. smiley

              Thanks!

                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 29635
                • 361 Posts
                Thanks Ryan. I logged that feature request in Flyspray (after spending 5 minutes trying to find the "Create new user" link up at the top smiley ). I’ll attempt a query via the DB API like you suggested and will update if I have success.
                  Need MODx Ecommerce? Try FoxyCart!
                  • 13577
                  • 302 Posts
                  Man I’m glad I’m not the only one. After the instructions said look at the BOTTOM for the new user account link, I looked and looked. Thought my lasik surgery was letting me down. Then I finally did a search and found it smack at the TOP. grin
                    Standard Disclaimer
                    I could be totally wrong.
                    • 22303 MODX Staff
                    • 10,725 Posts
                    My apologies for your time wasted searching the bottom of the page! embarrassed Flyspray moved the login and registration to the top of the page since the last version, and I neglected to change the wording on the page to reflect this.
                      • 32241
                      • 1,495 Posts
                      Happened to me too... grin
                      Hehehee...

                      But that’s the fun of open source community, we learn something from error/mistake of other people too... I’m just trying to point out that it’s something that makes open source project fun, compare to corporate business project like what I’m working on right now. A small mistake in typo is being taken VERY serious.

                      So anyway, looking forward to get to know y’all...

                      C ya...
                        Wendy Novianto
                        [font=Verdana]PT DJAMOER Technology Media
                        [font=Verdana]Xituz Media