We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32982
    • 674 Posts
    This is an auto-generated support/comment thread for SuperPage.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    Create 30 documents whith basic info
      Jabiertxof (formerly XYZVISUAL)
      My bussines: http://marker.es
      https://www.youtube.com/user/jabiertxof/videos
      • 8363
      • 28 Posts
      Quote from: xyzvisual at Aug 28, 2006, 06:00 PM

      Brief Description: Create 30 documents whith basic info

      More info would nice. "30 documents" what if I need 10 or 300? What does this actually do? How can it be used?
        • 30223
        • 1,010 Posts
        Yes, indeed...
        I just downloaded the code... There’s no documentation whatsoever, no indication of parameters or configuration, nothing. I’d think twice before pasting something into my set of plugins...

        I’m sure it’s usefull for something, but I’m not sure that it should be in the repository, certainly not as it is now.


          • 28042 ☆ A M B ☆
          • 24,524 Posts
          For one thing, it’s not a plugin, it’s a module.

          I added a bit to it; on line 85, in the loop that actually generates the documents, I changed the 30 to a variable, $howMany, then on the first line I added
          $howMany = isset($howMany) ? $howMany : 10;

          Now in the module’s Configuration, I put
          &howMany=howMany;int;10
            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
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Basically, it gives you fields to input the names for as many documents as you want, then other page settings. It only creates pages that you give it names for; if you fill out 2 fields or 300 fields it will create that many pages. Don’t forget to refresh the document tree manually; this doesn’t do it automatically.
              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
              • 6726
              • 7,075 Posts
              Thanks for the explanation Susan, I often have trouble understanding Javier’s extension I admit, which is a pity since some are really interresting...
                .: COO - Commerce Guys - Community Driven Innovation :.


                MODx est l'outil id
                • 32982
                • 674 Posts
                sorry i dont recive information about this coments in my plugin its realy like scottwell says
                and i made for create the site tree of a new website in a little cliks, i think is very usefoul and for me go well for give to my clients a menu whith all the site tree in a very less work than create one by one.
                i change the repository to give the name of module and give a short description.
                hi
                  Jabiertxof (formerly XYZVISUAL)
                  My bussines: http://marker.es
                  https://www.youtube.com/user/jabiertxof/videos
                  • 32982
                  • 674 Posts
                  A little tip
                  you dont need create 30 documents could be only 5 or 19 or 23 ....
                  only take blank the pages dont need
                    Jabiertxof (formerly XYZVISUAL)
                    My bussines: http://marker.es
                    https://www.youtube.com/user/jabiertxof/videos
                    • 32982
                    • 674 Posts
                    updated in the repository whith susan changes, thanks
                      Jabiertxof (formerly XYZVISUAL)
                      My bussines: http://marker.es
                      https://www.youtube.com/user/jabiertxof/videos
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      I’m working on a mod that lets you click on the document tree to set the parent. So far it sets the parent, but also triggers the javascript error message. I hate javascript.
                        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