We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10327
    • 10 Posts
    Really groovin on the newspublisher snippet.

    Using rev 2.1.1-TRADITIONAL
    newspublisher 1.1.0 pl
    Using firefox for editing

    The only template assignment is allows me is parent
    &parent=`2` does not work either. (2 is the container I want the post to go to)

    Everything else seems to work thus far


      • 35549
      • 24 Posts
      The template problem should be fixed in the newest version (1.2.0-rc1). Unfortunately it seems to me that the package is not downloadable. But you could change core/components/newspublisher/classes/newspublisher.class.php by yourself (see commit: https://github.com/BobRay/newspublisher/commit/5c67c872f984c74a5b1692ad76daf1ec4f724bac).
      Setting the parent worked for me up to now (if the resource with the Newspublisher call and the parent resource are within the default web context. If they are in a different context, you will need the newer version).
        • 3749
        • 24,544 Posts
        I don’t know why it’s not showing up in Download Extras, but you should be able to download it directly to your core/packages directory and in Package Manager select "Add New Package" and "Search Locally for Packages." Then install it.

        http://modx.com/extras/package/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
          • 10327
          • 10 Posts
          unable to download from package manager (it doesnt even show up) and download doesnt work on website either.
          ive noticed some things dont show up in package manager depending on which version of modx you use
          dumb
            • 10327
            • 10 Posts
            I also notice that on a modx 210 install, newspublisher 1.0.6 and try to update, it shows a popup window that usually allows you to select the version you want to upgrade to.
            This has TWO bullets with no names next to it. When you select either and install:provider_err_connect


            finally found copy of 1.2.0 at github.
            now none of the paremeters work.
            I use [[!NewsPublisher]] and it shows entire form
            but i use: [[!NewsPublisher&show=`pagetitle,longtitle,pub_date,unpub_date,content`]] and it shows nothing.

              • 3749
              • 24,544 Posts
              Quote from: fux0r at Jul 09, 2011, 05:39 AM

              I also notice that on a modx 210 install, newspublisher 1.0.6 and try to update, it shows a popup window that usually allows you to select the version you want to upgrade to.
              This has TWO bullets with no names next to it. When you select either and install:provider_err_connect


              finally found copy of 1.2.0 at github.
              now none of the paremeters work.
              I use [[!NewsPublisher]] and it shows entire form
              but i use: [[!NewsPublisher&show=`pagetitle,longtitle,pub_date,unpub_date,content`]] and it shows nothing.

              Try this (you’re missing the question mark):

              [[!NewsPublisher? &show=`pagetitle,longtitle,pub_date,unpub_date,content`]]
                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
                • 10327
                • 10 Posts
                Sorry about that. Im a dork.

                OK most of this works for me. Here is my call:

                [[!NewsPublisher? &show=`pagetitle,longtitle,pub_date,content`&aliastitle=`1`&initrte=`1`&rtcontent=`1`&rtsummary=`1`&initdatepicker=`1`&parent=`2`&published=`1`&hidemenu=`1`&cacheable=`1`&searchable=`1`&richtext=`1`&postid=`31`&template=`6`]]


                or

                [[!NewsPublisher? &show=`pagetitle,longtitle,pub_date,content`&aliastitle=`1`&initrte=`1`&rtcontent=`1`&rtsummary=`1`&initdatepicker=`1`&parent=`2`&published=`1`&hidemenu=`1`&cacheable=`1`&searchable=`1`&richtext=`1`&postid=`31`&template=`Utility`]]


                The only things I have a problem with:

                doesnt post under resource 2
                doesnt use template called Utility (6)
                doesnt hide from menu

                is it just cuz its buggy or cuz im a moron?




                  • 3749
                  • 24,544 Posts
                  Others have reported problems with setting the parent and template, but I’ve had trouble reproducing them. What version of MODX do you have?

                  I’m not sure about hidemenu -- is the hide from menus checkbox checked when you edit the doc later in the Manager?
                    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
                    • 3749
                    • 24,544 Posts
                    OK, I’ve confirmed bugs in the current version with parent and template and hidemenu (no fixes yet, though).

                      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
                      • 3749
                      • 24,544 Posts
                      Update: First -- no bug with &parent (it was changed to &parentid a few versions ago).

                      I just uploaded 1.2.0-rc2 which contains fixes for the hidemenu and template bugs as well as the completed German translation (thanks to mschlegel!) and does appear now in Package Manager.

                      Note that if you installed rc1 using "search locally for packages" it won’t show that an update is available in Package Manager.

                      In case anyone is curious, $hidemenu and $hideMenu are not the same variable. tongue

                      The template bug was particularly insidious. It was in this line, which the debugger persisted in flying over, even though the property was not empty and my editor showed it as perfectly good code:

                           } elseif (!empty($this->props['template)'])) {

                        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