We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Hello,

    Using Revo 2.1.3 and Newspublisher 1.2.0 rc2.

    We have a press release template in which the user can upload a PDF file. Using Newspublisher to call this variable is fine, but it is a text field. Is there any plan to allow it to be an upload field (same thing with images). It seems at the moment the best solution is to instruct them users to go into the content RTE type in a word, highlight, and then use the link button to upload their PDF to the designated folder and then copy the resulting path and paste it into the field. Not particularly user friendly. I realize that it may be a security concern but since users can get to the file system through TinyMCE does that not negate it? Or is this just some monumentally difficult thing to implement front end that it’s not worth it (which would be good to know and of course, perfectly understandable).
      • 3749
      • 24,544 Posts
      I’ve been meaning to implement that, but just haven’t had the time.

      Another user has created a fork of NewsPublisher that I think does implement a file browser, but I haven’t had time to look at it.

      https://github.com/marcsch/newspublisher
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
      • Quote from: BobRay at Aug 13, 2011, 08:11 AM

        I’ve been meaning to implement that, but just haven’t had the time.

        Another user has created a fork of NewsPublisher that I think does implement a file browser, but I haven’t had time to look at it.

        https://github.com/marcsch/newspublisher

        Great news. We’ll wait for the official version. We’ll also be releasing a couple of Extras as a result of this project that we hope people find useful, but have to abstract them out a touch.
          • 3749
          • 24,544 Posts
          It could be quite some time before that makes it into an official release. If you need it sooner, you could just download from the user’s fork, (or get it faster with Git).
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
          • Thanks. We installed it and it works, though it does require a second login to get back to a very limited manager that gives you the file access. It's an interesting approach but works for now.
              • 35549
              • 24 Posts
              I'm glad it works for you. I just looked at how the TinyMCE image selection window is done and adapted it for NewsPublisher. I agree that the second login is a usablility problem. I wasn't able to get the browser working in the frontend directly without a second login. Maybe a totally different browser could be included, but this might be more complicated... [ed. note: mschlegel last edited this post 12 years, 8 months ago.]
              • So am I correct in understanding that the Extras version of NewsPublisher does not have the file/image browser available for file or image type TVs? As for the forked version on githib, is it necessary to save each file individually?
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 4172
                  • 5,888 Posts
                  I think you can download all files together as zip:
                  https://github.com/marcsch/newspublisher/downloads
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                  • Quote from: mschlegel at Aug 25, 2011, 07:59 AM
                    I'm glad it works for you. I just looked at how the TinyMCE image selection window is done and adapted it for NewsPublisher. I agree that the second login is a usablility problem. I wasn't able to get the browser working in the frontend directly without a second login. Maybe a totally different browser could be included, but this might be more complicated...

                    Not to much of a problem though so it's great that it is an option. Our coder also merged the latest Newspublisher with it that takes care of the template variable issue.
                      • 3749
                      • 24,544 Posts
                      Quote from: sottwell at Dec 02, 2011, 05:37 AM
                      So am I correct in understanding that the Extras version of NewsPublisher does not have the file/image browser available for file or image type TVs? As for the forked version on githib, is it necessary to save each file individually?

                      Susan, the image type works but I've been unable to create a usable file browser. I think you can actually use the image type for files, but it nags you about providing the extra attribute fields an image would use.
                        Did I help you? Buy me a beer
                        Get my Book: MODX:The Official Guide
                        MODX info for everyone: http://bobsguides.com/modx.html
                        My MODX Extras
                        Bob's Guides is now hosted at A2 MODX Hosting