-
- 97 Posts
I wrote this code last night that will take an unordered list of page titles and insert pages into the database. I used this code to add 650+ pages to a site from a list my client gave me in Microsoft Word. I get these all the time so I thought it would be cool to go straight from a list to MODx pages. Until this time I used the SuperPage Module, but this is faster. This is the development forum so I’ll just let you read the down and dirty code (attached), but feel free to ask questions. This would be really easy to turn into a module, so I might do that at some point.
To use, run this script from your local or remote web server and point your favorite web browser at it. Enter your list into the text area and click submit (your list probably needs to be xhtml valid in order for it to work right). There are a few vars in the script that you can adjust, so take a peek there.
I’m interested to know what others think of this, and if anyone else has some cool helper scripts like this...
James
-
- 4,205 Posts
This sounds cool, can be a real time saver. I will use it for setting up the structure for my next project. Thanks.
Sorry, I don’t have any cool tools to share yet.
-
- 332 Posts
Can you save a zip file? I can’t open the ’gz’.
Thanks!
Ah. I have an older (well, almost 2 years old) G4 iBook, and the latest update to Stuffit (12, I believe) works just fine. Earlier it was crashing rather frequently on archives from MODx. So I used this
http://leifh.up.md/apps/ez7z.html