Page 1 of 1

Bulk Creation of Pages

Posted: Fri Dec 22, 2006 2:57 pm
by versatility
I love cmsmadesimple and use it on all my sites.  One drawback I find is that the process of creating individual pages slows me down - there is a lot of loading and refreshing going on.

Is there a way I could bulk create pages?  I'm open to any possibility, am fairly strong technically.  My general idea would be to create, say, 20 pages - page 1, page 2, page 3 so I would have structure and then can go back and change templates, or edit as needed.

Thanks!

Re: Bulk Creation of Pages

Posted: Fri Dec 22, 2006 3:36 pm
by calguy1000
Sorry, nothing currently exists for this.  but it'd be a great idea for yet another module.

A module that would provide the following options:
  • Allow you to specify a start page parent
  • Allow you to specify a directory on the server
  • Allow you to specify a page template
Then it would open the directory, read all the html files (recursively), strip off the head stuff, the tags, and put everything else into the content area.  If a directory was encountered we could put a section header in.

It would also be nice if it trapped images in the html code, looked for them in the sub-directory, and then imported them appropriately into the CMS images directory.

That way, somebody could use wget to get a copy of a site, upload it via ftp to a temporary directory on the server, then import all of the pages in one shot.

It'd really really be nice :)  But I feel it's a considerable amount of work.

Re: Bulk Creation of Pages

Posted: Fri Dec 22, 2006 4:51 pm
by versatility
The idea for a module sounds great, but like an involved undertaking.

Could I create pages with a script at the db level perhaps?  Or - could I create a "standard" array of pages on a dev site and them import them each time - much like the option to install or not install the content pages that come with CMS, just customized for my purposes?

Thanks!

Re: Bulk Creation of Pages

Posted: Sat Dec 23, 2006 2:29 am
by Dr.CSS
create a "standard" array of pages on a dev site and them import them each time
This would be done using the Backup Module, also used for moving sites...

See... http://forum.cmsmadesimple.org/index.ph ... 376.0.html