Bulk Creation of Pages

General project discussion. NOT for help questions.
Post Reply
versatility
Forum Members
Forum Members
Posts: 49
Joined: Sun Sep 24, 2006 2:46 pm

Bulk Creation of Pages

Post 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!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Bulk Creation of Pages

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
versatility
Forum Members
Forum Members
Posts: 49
Joined: Sun Sep 24, 2006 2:46 pm

Re: Bulk Creation of Pages

Post 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!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Bulk Creation of Pages

Post 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
Post Reply

Return to “General Discussion”