On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • I have edited the "welcome.html" page the the end user to edit content.
    I want to link to chunks and TV's for them to edit.

    Can this be done? I can't find any info on this.

    Thanks
    BG66
    • If you could supply the modified welcome.html page's code so I could see exactly what it's doing I'd have a better idea of what you want to do. Does the welcome page just redirect to the edit resources page? I think it could be done with a plugin.
        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
      • insightdesign Reply #3, 7 years ago
        Hi,

        I'm not quiet sure what you're asking for. Maybe some more information would be good. Like:

        - What do you mean that you want to "link" to a chunk and TV?
        - Which version of MODx are you using? I am assuming that you are using Revo.

        Here's something that you might find handy:
        - Creating a TV: http://rtfm.modx.com/display/revolution20/Creating+a+Template+Variable
        - Creating a Chunk: http://rtfm.modx.com/display/revolution20/Chunks
        • I do believe this is Evolution. Revo doesn't use ManagerManager. ManagerManager uses javascript to manipulate the existing forms and fields in the Edit Resource page. To add more to the page, a plugin would be used. ManagerManager could then be used as usual to manipulate the additional sections and fields.
            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
          • Heres a set of plugin examples for the manager welcome screen which might be of use.
            1. Unzip the attached manager_welcome_screen.zip, upload the manager_welcome_screen folder into your assets/plugins/ folder.
            2. Rename your current welcome.html, and drop the modified welcome.html into your assets/templates/manager/ folder.
            3. Create a plugin named "manager_welcome_screen" with the code below ( no php tags )
            include MODX_BASE_PATH.'assets/plugins/manager_welcome_screen/mws_plugin.php';

            check the following events:
            OnManagerWelcomePrerender
            OnManagerWelcomeHome
            OnManagerWelcomeRender
            OnDocFormRender
              xforum
              http://frsbuilders.net (under construction) forum for evolution
            • Thanks everyone,

              I am using Evo and following this procedure:
              http://wiki.modxcms.com/index.php/Customizing_the_Manager_Homepage

              I have chunks and TV's set up for the content.
              I want the editor to be able to quickly and easily access the chunks and TV's for editing.

              Example: I have a chunk of text for the home page intro. It is a couple of sentences.
              I want the editor to be able to edit the content whenever they want.

              I already have the welcome page set up to add and edit resources.
              I want everything in one place.

              I will try out your code breezer.
              Thanks
              BG66
              • That wiki page is pretty outdated and most of the instructions do not apply for the newer Evolution changes made to the welcome screen.
                  xforum
                  http://frsbuilders.net (under construction) forum for evolution
                • Thanks breezer,
                  I created the new plugin, but it kinda looks like the original manager page.

                  Still looking for a way to list the chunks and TV's I want the user to edit.

                  I am using EVO 1.05 and MM 0.3.9.
                  So I just updated to MM 0.3.11
                  Will try some more things with this version... [ed. note: BobbyG66 last edited this post 7 years ago.]
                  • You can make direct links like this

                    index.php?a=78&id=14

                    where "a" is the "action" to be done and "14" is the ID of the item in question. This link would open an editing screen for chunk #14.

                    You can find the action IDs in the manager/index.php file; this is mostly a huge switch that includes the appropriate action .php file depending on what was clicked on.

                    Using this method, you could even create a management page with these links to show on the front-end (unpublish it and only logged-in Manager users could access it), then create a menu item in Quick Manager for that page. A plugin using the onSave... events would return the user to the front-end page when the element is saved. This has a few flaws in it, but it's a beginning anyway.

                    [ed. note: sottwell last edited this post 7 years ago.]
                      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
                    • I wonder if it wouldn't be possible to modify QuickManager to allow use in the case of front-end access for users whose Manager Interface Access is set to No. That way a user could be allowed to edit using the QM interface from the front-end, without having any access to the Manager itself.
                        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