We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7260
    • 107 Posts
    Hi Ive recentlt decided to revisit modx, Iv been playing with it again and really do enjoy it.
    But when I got to newspublisher I suddenly got frustrated again.

    "Manager users are stored separately from web (front-end) users for security reasons. A web user cannot log into the back-end nor can a Manager user log into the web site (front-end)."

    I suddenly remembered this was the most frusterating element I had with modx. For crying ou load I just want to have one user who is able to edit content from the front end, and If I want to I can go theough the backend as well. To accomplish this thus far, I installed the manager login snippet, which has the front end interface. Nice. And either modx or maxigallery must have done an amendment because Its working as planned, I can login as a manager user and still manage a gallery...

    But When It comes to Newspublisher Im ready to pull out my hair. I remember this was such an issue before that someone came up wth a Web2Manger plugin. But I also thought it was going to be resolved another via another method in the core...

    So I think I may be missing the latest info on this and unfortunately my searches are sending me in circles.
    Basically the question is...
    Cant manager users post a blog from the front end, too? Is it really necessary to have a separate login and user for that? Perhaps I have an older version of that snippet. Please point me in the right direction.

    Thanks so much. Modx is vey cool..I jsut hope this kind of issue has been resolved. Or alternatives present. (other than 2 sepertae logins)
      • 3749
      • 24,544 Posts
      This might help: http://modxcms.com/forums/index.php/topic,14977.0.html. I don’t know why FDM isn’t in the Repository.

      The permission system for Modx Revolution (currently in alpha) is much different and should solve many of your problems.

      NewsPublisher, IMO, is not that much easier than creating documents in the Manager and it’s no use for editing them, so having manager users do all their work in the Manager isn’t that much of a hardship.

      Also, I think a manager user who wants to use NewsPublisher can always right-click on the document with the NewsPublisher call and select "preview."



        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
        • 7231
        • 4,205 Posts
        I don’t know why FDM isn’t in the Repository.
        Because it is officially in beta, although many have been using it.

        I am pretty sure you can edit NewsPub to show for manager users.
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 7260
          • 107 Posts
          Thanks for the responses. I looked into FDM looks very promising.
          I agree really it is easy to edit from the backend. But Im trying to streamline it for someone technically challenged. That is they get intimidated by too many options. In my opinion, as someone who usually codes in xhtml and css I find that Modx Is superior to many.


          But the publication user mangement issue, i thought was fixed. I rember there was also a newmanager snippet that got close too it too.
          I looked through FDM and its not working for me, yet. But I also see a lot of conflicts with my naming convention so Im not ready to dive into that one yet..Ill keep reading up on it though.

          dev_Cw do you know where I can read more about editing NewsPub for manager users?

          Thanks in advance.
          !
            • 3749
            • 24,544 Posts
            Quote from: dev_cw at Oct 05, 2008, 05:18 PM

            I don’t know why FDM isn’t in the Repository.
            Because it is officially in beta, although many have been using it.

            I think it might be in permanent beta. wink

            It’s been there since May of 2007.
              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
              • 7231
              • 4,205 Posts
              FDM should work.

              Anyway a simple hack to make newsPub for managers only is to edit this code (it is the last bit of code for the snippet):
              default: 
                      // display news form
                      // check if user has rights to post comments
                      if(!$allowAnyPost && !$modx->isMemberOfWebGroup($postgrp)) {
                          $formTpl = '';
                      } else {
                          foreach($_POST as $n=>$v) {
                              $formTpl = str_replace('[+'.$n.'+]',$v,$formTpl);
                          }
                      }
                      // return form
                      return $message.$formTpl;
                      break;


              change this line:
              if(!$allowAnyPost && !$modx->isMemberOfWebGroup($postgrp)) {

              to:
              if(!$_SESSION['usertype'] === "manager") {


              This worked for me in my test environment. Note, this will only allow manager users and it will allow any manager user. To limit it to a specific manager group will need more code.

              About using the manager interface, my experience is that most users can handle it with a little initial coaching. You can slim it down by limiting the role (remove chunks, snippets) and now there is also the ManagerManager plugin that allows you to move things around and rename fields as well as add some nice widgets.
                [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                Something is happening here, but you don't know what it is.
                Do you, Mr. Jones? - [bob dylan]
                • 7260
                • 107 Posts
                Thank you!
                Im not sure why its not working but it seems like a simple hack. This isn’t just for comments is it?
                Do I need to create a doc group or something?

                Thanks for your assistance.
                  • 7231
                  • 4,205 Posts
                  It should work. I have attached the entire file, maybe a typo or something.
                    [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                    Something is happening here, but you don't know what it is.
                    Do you, Mr. Jones? - [bob dylan]
                    • 3749
                    • 24,544 Posts
                    Be sure to clear the site cache and your browser cache before testing the changed code.

                      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
                      • 7260
                      • 107 Posts
                      Still cant get it to work.
                      Im going to go through it thoroughly though and make sure Im doing the calls right.

                      Do I need any user groups set up? (I have two admins (managers) on my test site.

                      Ill keep digging, if its working for you its more likely I have an error somewhere in my set up. So ill double check before saying this fix doesnt work for me.
                      Thanks again for taking the time to do that..