We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15162
    • 59 Posts
    This looks really good and I had to give it a test. This would be perfect for me, as I imagine for many. I could have very nice control over what the people who post on my site see - for my sake as well as theirs wink Unfortunatelly I couldn’t get any parameter to work. When I call it with
    [[!NewsPublisher]]

    it works exactly as it should, but when I try to add a parameter (I have tried a few already) the form doesn’t show up at all anymore. Example:
    [[!NewsPublisher &show=`pagetitle,longtitle,hidemenu,published,description,menutitle,pub_date,unpub_date,introtext,content`]] 

    (for the sake of experimenting, I have the same fields as the parameter defaults to)

    I expect that I have screwed up something myself, because that’s how the plot usually continues from here on tongue Have I left a parameter out that I need to add?

    Modx Revo 2.0.6-pl2 (traditional)
    MySQL 5.0.91
    PHP 5.2.14
      • 3749
      • 24,544 Posts
      Quote from: zi at Jan 07, 2011, 10:55 AM

      Hi Bob!

      Does it support TVs?

      Mostly. wink There’s no image browser for image TVs (though it does show the path and the image) and it may or may not do what you want with TVs that have @bindings. Otherwise, I think they’re fairly well handled.
        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
        Quote from: JX3 at Jan 07, 2011, 02:05 PM

        [[!NewsPublisher &show=`pagetitle,longtitle,hidemenu,published,description,menutitle,pub_date,unpub_date,introtext,content`]] 


        You forgot the question mark after the snippet name. wink

        http://bobsguides.com/insidious-modx-errors.html (see number 2).

        You’ll also need this since you’re asking for date fields:

        &initdatepicker=`1`
          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
          • 15162
          • 59 Posts
          Haha I knew I messed something up laugh

          Btw, this is an awesome add-on. Probably the one that Revo needed the most.

          But I need to ask more wink I swear that I don’t have a typo, but I can’t get the &template parameter to work. Instead the default template gets used. Problem lies in that the content that gets posted uses different templates and I have set up a NP form for each template. I didn’t find the template parameter from your site, but it was in the snippet file as well as in the properties. Which makes me wonder that is it there only as a placeholder of sorts? Am I trying to use a parameter that doesn’t exist or have I once again missed something obvious?
          [[!NewsPublisher? &show=`...` &initdatepicker=`1` &parent=`3` &required=`...` &template=`arvostelu` ]]

            • 3749
            • 24,544 Posts
            Try setting &template to the ID of the template you want.

            You can also set it to ’Parent’ and it will get whatever template the parent has.
              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
              • 15162
              • 59 Posts
              Quote from: BobRay at Jan 08, 2011, 07:49 AM

              Try setting &template to the ID of the template you want.

              You can also set it to ’Parent’ and it will get whatever template the parent has.
              I actually tried the ID already and it didn’t work neither. I can look into the parent thing at some point, but currently the parent uses a list template which is different from the template that I need to use. There could be a lot of work in changing the templates.

              If the parameter should work and works for other folk, and I don’t have typos, the fault is probably in my installation. I had problems with infinite refresh when trying to log in with Chrome, which were fixed when I upgraded, but maybe something is still wrong.
                • 3749
                • 24,544 Posts
                Let me test it and get back to you. It could be a bug in the add-on.
                  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
                  There is a bug that might keep it from working with the template’s ID, but it works fine for me using the name. Check the spelling of the template name -- it’s case-sensitive.
                    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
                    • 15162
                    • 59 Posts
                    Well then it has to be because of my installation. It just doesn’t work for me or I can’t get it to work. I promise that I’ve double triple quatro checked for typos. I might try reinstalling the whole thing at some point.

                    Thanks for your help and time though!
                      • 3749
                      • 24,544 Posts
                      Can you paste your newspublisher tag here?
                        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