We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32963
    • 1,732 Posts
    array("action"=>action) is used to pass the currently requested of to the event. This way a plugin can be made respond to a requested action.
      xWisdom
      www.xwisdomhtml.com
      The fear of the Lord is the beginning of wisdom:
      MODx Co-Founder - Create and do more with less.
      • 32963
      • 1,732 Posts
      Have you also tried to use the following user settings?

      Manager Login Startup
      Enter the ID of the document you want to send the user to after he/she has logged into the manager. NOTE: make sure the ID you’ve enter belongs to an existing document, and that it has been published and is accessible by this user!

      Manager Interface Access
      Select this option to enable or disable access to the manager interface. NOTE: If this option is set to no then the user will be redirected the the Manager Login Startup or Site Start web page.
        xWisdom
        www.xwisdomhtml.com
        The fear of the Lord is the beginning of wisdom:
        MODx Co-Founder - Create and do more with less.
        • 25663 MODX Staff
        • 12,272 Posts
        FYI, the event was committed per the above in 1249.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 27889
          • 415 Posts
          Raymond, yes I try it but it doesn’t work for me, problem with a function that is not already implemented huh.
          I updated the redirect plugin.
          I keep my method until there is no better. (Perhaps in the next Tattoo), The plugin is simple. Can you test it ?
            MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
            MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
            • 32963
            • 1,732 Posts
            Quote from: Soda at Aug 08, 2006, 03:41 AM

            I posted the big baby, see first post.

            Should I post a zip rather than all code ?

            Can you explain me what’s bad ?
            Well I would suggest that you add zip it and add it to the Repository
              xWisdom
              www.xwisdomhtml.com
              The fear of the Lord is the beginning of wisdom:
              MODx Co-Founder - Create and do more with less.
              • 27889
              • 415 Posts
              thanks for your answer, I’m surprise that I have no more reply, lot of people seems interrested.
              Are you sure that I must post it in the repository ? I don’t made lot of test, perhaps I must wait that some people test it to have a more reliable version.
              ... later ...
              I’m going to test and improve the code and after, if someone’s interrested I put it in the repository.
                MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                • 25663 MODX Staff
                • 12,272 Posts
                Definitely put this in the repository when you feel it’s ready. smiley

                As far as testing by the internal team goes, we’re a bit busy working on the next release at the moment, so we apologies for any perceived disinterest. That is not the case.
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 27889
                  • 415 Posts
                  Thanks, I prefer you work on the next version of MODx than to test my code grin. I hope the next release comes soon and waitting for it.
                  Continue your good work !
                    MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                    MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                    • 27889
                    • 415 Posts
                    Now it’s ready, I totaly rewrote the display snippet with ... Ditto .
                    An example is better than words: check the demo
                    Posted in the repository
                    I have a folder wich is the under that each article is a document.
                    This folder is used to display a list of the articles.

                    The List of Articles:

                    In this folder I only have a call to a snippet:
                    [!RunDitto? &SelectFilterTV=`Category` &SelectPerPage=`10,15,20,25` &tpl=`ProduitAllDittoTpl` &language=`francais`!]

                    • &filtertv: optionnal parameter if you want a select list to allow the user filter the results with tv value.
                    • &perpage: optionnal parameter of comma delimited numbers to allow the user to choose number of results per pages in option list.
                    • &tpl: the template for Ditto.
                      In this Template I have a call to the snippet MaxiGallerySolo to display a thumb of the article if a gallery exist for this article.
                      There is a small problem because I use several call to this snippet (one per article) and regClientScripts() is redefined so it cause an error, for the moment this function is commented, I’m going to talk to doze to find a solution.
                    • &language=`francais`: for the frogs, if ommited english is used. (you must have the lang file: /assets/snippets/ditto/lang/francais.inc.php)
                    A form is construct automatically to allow user choices.
                    If no parameters are set, no form is displayed.

                    Then, RunDitto call Ditto with these parameters.

                    The Articles:
                    Each Article page contain only a chunk:
                    {{ArticleTpl}}
                    It contains all the fields, some are Document properties (title, longtitle, description) others are TV, all displayed with [*#my_fields_names*] so the registered user (in manager) could edit them in the front-end.
                    There is a call to the MaxiGallery snippet to display a gallery for that article login users(in manager) can uplod and manage their images.
                    [[MaxiGallery? &manager_webgroups=`Registered Users` &thumb_use_dropshadow=`1` &thumb_shadow_bgcolor=`C7C2A1` &pic_use_dropshadow=`1` &pics_in_a_row=`3` &display=`embedded` &embedtype=`lightboxv2`]]
                    There is two call to [[effaceprod]] and [[ajouteprod]] to display buttons for registered user to allow them add or delete an article.

                    The redirect plugin:
                    This plugin dissalow the user to have access to the backend (the manager), after he is logged in the manager login, he is redirected to the frontend with manager rights, so he can modify fields, add or erase an article.
                    I hope that in the next releas of MODx the option "access to the manager" will work, because the redirect plugin need to hack the core to insert a new event, before manager is load.

                    TODO:
                    Add a cart’s system, the one of Susan seems very promising.

                    Thanks to MODx, Ditto, MaxiGallery and all of you, I’m waiting for your feedbacks (good and bad).
                      MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                      MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]