We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    I think FDM supports TVs.. so my suggestion would be to move to that one, but I don’t have any personal experience from it..


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 27708 MODX Staff
      • 2,502 Posts
      Yeah,

      I did decide that later today. I found that I have a new set of problems with that and Soda is working on refactoring it for xPDO and doesn’t seem to be working on updating the FDM until after he is done.

      Thanks for your suggestion.

      Cheers,

      Jay
        Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
        • 11413
        • 203 Posts
        Hey SmashingRed,

        I need exactly the same feature in NewsPublisher. A date picker in the form that will then be assigned to the new document date TV so Ditto can sort the posts with it so you can use it as an event calendar instead of a simple news listing, right?

        As the time is running almost before me with my customer, I’ll have to come with something before friday, but in case you do find a working solution before me, please let me know!

        Bye,

        Blaise
          Blaise Bernier

          www.medialdesign.com - Solutions for small business, hosting, design and more!
          • 13736
          • 345 Posts
          Well, I’m another user wanting this ability.

          Currently I’m using the Kalendar Enhanced snippet to pick up blog entries if they have the required TVs set with the date. So the ideal method is to offer this when the blog is originally published. So writing the date to the TV, and having a date picker for the front end of NewsPublisher would be awesome.

          This thread started back in 2005. What has taken so long?

            • 36592
            • 970 Posts
            Quote from: jbjones at Dec 19, 2007, 02:08 AM

            This thread started back in 2005. What has taken so long?
            You can use Docmanager class or hack the core.
              • 13736
              • 345 Posts
              Ok. I’m not much in favor of hacking the core because you have to do it every time an update comes out. But maybe Docmanager Class will hold some promise.

              By the way, how does NewsPublisher write to the custom blogContent TV shown in the tutorial http://www.modxcms.com/blog-publish.html and which even has simple editing tools show up on the front end, and why doesn’t it work on at type of TV.

                • 29635
                • 361 Posts
                You don’t have to hack the core. That code was from _SO_ long ago that it’s what we did because we didn’t understand how else to make it happen.

                You should be able to just define that function wherever you need it (in your snippet), or keep it as a separate include file and include it, or whatever. Hacking the core is clearly to be avoided, but all it is is a function. I don’t think it needs to be in the core.

                (I could be wrong. It was almost 2 years ago that we wrote that little hack. MODx 0.9.0 I think. Maybe 0.9.1 wink
                  Need MODx Ecommerce? Try FoxyCart!
                  • 23513
                  • 6 Posts
                  Just to be complete: I’ve got the solution from muskokee/Sheri working, by hacking "document.parser.class.inc.php" and the newspublisher snippet. He posted this work-around halfway page 2 of this thread. Just follow the simple instructions. Make a copy of the file and snippet first... ;-)

                  moejarv asked a question, which wasn’t answered yet: Do I assign it with a name in the snippet call? if so, how do I do that? Something like this? CODE: &the_TV_I_Want_to_Call=`TVnickName`

                  Answer: No, you don’t have to assign a TV in the snippet call (like the rich blog-content: &rtcontent=`tvblogContent`). Just make a input-field in the form-template which has the same name as the TV you want to fill.

                  For example: My TV was named "newsFilter" (and was a checkbox). My "FormBlog" html-chunk contained: <input type="checkbox" name="newsFilter" id="FSM" value="FSM" />. I called the snipped like you would normally do: [!NewsPublisher? &folder=`2` &template=`~Extranet Template` &canpost=`admins` &formtpl=`FormBlog` &makefolder=`1` &rtcontent=`tvblogContent`!]

                  That was all. It works like a charm.
                    • 15796
                    • 24 Posts
                    My problem is that I have a TV called "content" as all my pages look alike, except for the content.
                    Can I use the newspublisher without renaming my TV as there already is a field called content in the form?

                    and is it stell necessary to hack to code as the posts from pixelXp and The Man Can! seem to contradict each other.
                      • 25663 MODX Staff
                      • 12,272 Posts
                      Rename the "content" TV to something else ... That’s probably going to conflict with the main [*content*] field.
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me