We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23299
    • 1,161 Posts
    I changed the Context to MGR and the Access Policy to Editor but I still get the error. Do I need to uninstall and re-upload the NewsPublisher snippet again?

    I dumped NewsPublisher and installed it again but still get the error... [ed. note: Photowebmax last edited this post 14 years, 8 months ago.]
      • 3749
      • 24,544 Posts
      Right. The context is correct ('web'), but the policy needs to be a policy that contains the new_document permissions (and has it checked). It will also need the other resource editing policies like edit_document and save_document.

      'web' and 'Content Editor' may work, but for testing purposes, you might just change the policy to Administrator and worry about restricting actions later.


      ---------------------------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
      MODx info for everyone: http://bobsguides.com/modx.html
        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
        • 23299
        • 1,161 Posts
        Went for a quick walk - I needed it...

        I messed around and it works! Web and Content Editor seems to do the trick. Phew! Thanks Bob!!

        I guess setting Articles in this system would be much the same.

        Next comes editing the NP form and building a targeted template for it...
          • 3749
          • 24,544 Posts
          Editing the NP form, is mostly just a matter of selecting fields in the &show property. wink


          ---------------------------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
          MODx info for everyone: http://bobsguides.com/modx.html
            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
            • 23299
            • 1,161 Posts
            Ughhh,

            The NP Create/Edit Resource will display but when you fill out the form and hit submit nothing happens? No page is created and no link within the <ul> is generated?

            Some quick testing...

            If I have the NP page with Access Permissions>> Private Pages checked then no pages are generated with the NP form.

            If I uncheck the Private Pages box then the NP form will generate pages and they will appear below the NP Resource in the Revo Manager tree but all the generated pages are set to unpublished even though I checked the Publish box in the NP form...


            Later edit: I also tried adding properties but adding any property resulted in the NP form to not display...

            I wonder if I should back up and try using Articles with the web users system? This all seems harder than it should be? [ed. note: Photowebmax last edited this post 14 years, 8 months ago.]
              • 3749
              • 24,544 Posts
              Did you maybe forget the question mark when adding the properties?

              What version of MODX are you using?

              Also make sure the NewsPublisher page has an alias and call the snippet uncached:

              [[!NewsPublisher]]


              ---------------------------------------------------------------------------------------------------------------
              PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
              MODx info for everyone: http://bobsguides.com/modx.html [ed. note: BobRay last edited this post 14 years, 8 months ago.]
                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
                • 23299
                • 1,161 Posts
                Still no luck...

                If I have the Private Pages Access Permissions checked then the link to the NP form will not be active. If I uncheck it then the form is active via the navigation link, but open to anyone, which I cant have. I just cant get the form to show when the Access Permissions is set and I cant get the form to publish any pages. The only way I can get the form to publish at all is not having the Access Permissions checked and then having to manually click the publish box via the Revo Manager afterwords.

                I am using 2.1.5 and am thinking about upgrading and trying getResources or Articles in the morning. This is not a critical website but I am stubbornly wanting to get some kind of result with the web group system working.
                  • 3749
                  • 24,544 Posts
                  It sounds like the private users may not have access to that page. Do you have a Resource Group Access ACL entry giving them access to that resource group? And does it use the Resource policy?

                  Also, be sure to flush permissions and sessions after adding the NP page to the group.

                  On the published issue, the Content Editor policy does not have the publish_document permission checked, so those users don't have permission to create a published document.


                  ---------------------------------------------------------------------------------------------------------------
                  PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
                  MODx info for everyone: http://bobsguides.com/modx.html
                    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
                    • 23299
                    • 1,161 Posts
                    I am not sure if I get your first paragraph? The link to the NP will appear for logged in users but only the child page will be active if the Access Permissions is checked.

                    But I can't deal with any more of this tonight. I am not sure if this will work or not, but tomorrow will have to be another day.

                    I will say this: Revo security and permissions seems way more completed and non user friendly when compared with Evo...
                      • 3749
                      • 24,544 Posts
                      Quote from: Photowebmax at Feb 07, 2012, 10:40 PM
                      I am not sure if I get your first paragraph? The link to the NP will appear for logged in users but only the child page will be active if the Access Permissions is checked.

                      But I can't deal with any more of this tonight. I am not sure if this will work or not, but tomorrow will have to be another day.

                      I'm sorry, I don't know what you mean. What child page?



                      I will say this: Revo security and permissions seems way more completed and non user friendly when compared with Evo...

                      I don't think you'll get much of an argument there. wink

                      [Update] I tested what I think is your scenario and it worked for me, although it didn't until I checked the publish_document permission on the Content Editor policy, saved it, cleared the cache, flushed permission, and flushed sessions.

                      It's important to add yourself (the admin Super User) to the Editors group with a role of Super User. Otherwise, the resources are created, but you can't see them (since they are private and you don't have access to them). Make sure the NP page is published.

                      It's also somewhat munged up when previewing from the Manager because then the current context is mgr, not web.

                      You should also either include the alias field in the &show property and be sure to fill in the alias, or turn on the auto_alias System Setting (it's off by default).


                      ---------------------------------------------------------------------------------------------------------------
                      PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
                      MODx info for everyone: http://bobsguides.com/modx.html [ed. note: BobRay last edited this post 14 years, 8 months ago.]
                        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