Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 03:16:43 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149700 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Import multiple html files  (Read 247 times)
imqqmi

Offline Offline

Posts: 10


« on: November 19, 2010, 12:01:17 AM »

Hi, I've been lurking here for a while and I've learned a great deal about website bakery, used it on some websites too.

Recently I've got to restyle an existing website that has over 1000 of well formatted content. My question is, is there anyone who has tried importing this directly into the database? My plan is to create such a module if there isn't one available. The prospect to manually import 1000+ pages is daunting to say the least Wink

The workflow would be something like this:
- Strip the html files down to just the content part, all menu and design stuff has to be removed. In my case I could use textpad and use regular expressions and strip all files.
- I'll upload all the html pages to a separate folder
- I point the to be created module to this folder and it begins reading the first file
- It first extracts the title to use as page title for menu.
- A page is created and named
- The WYSIWYG section is filled with the content
- Repeat until all files are done
- Report successful/unsuccessful pages, maybe move succesful pages to a different folder.
- I'll have to drag and drop the pages into the right order and apply parent etc to create a proper structure. Or is there an easier way to apply this? I have access to phpmyadmin, so I'd be able to do it directly into the database. It would be great if each page in the pages overview had a check box with a couple of buttons and drop down lists to apply a couple of pages with the same parent for example.
- I can then adjust the css to format the imported pages.

I think I can slap something together using the source of the 'multipage' module and maybe the 'Export and import of  single pages' module.

What do you guys think?
Thanks for looking!
Logged
chio
WebsiteBaker Org e.V.

Offline Offline

Posts: 2264


« Reply #1 on: November 19, 2010, 09:34:38 AM »

I also thougt about a similar solution, but I stopped it for some reasons:
How much work is it, to tidy up the old html an make it clear for import - vs: Add a new page and copy/paste the content.
How much pages do you really have? 20.. 50.. 100? Is it worth work?
and finally: Arent the old pages worth a litte refreshment in content? Do you port a site, to have the same like before?

Some months ago I ported my old domain (www.beesign.com, ca. 200 pages) to WB - by copy/paste. yep, it took some time, but by the way I changed some text and pics, sorted out old stuff, added new stuff.
In February 2010 I ported zeltstadt.at - 350 pages. Also with copy/paste. Nearly the same strukture - but some different. It would have been much more work to repair the structure/content, instead of making it completely new.
Logged

*weg*
imqqmi

Offline Offline

Posts: 10


« Reply #2 on: November 19, 2010, 06:30:07 PM »

Chio, thanks for your input. Yes you are right that we should look into updating the content. We're at least going to restructure it and it may be a lot of pages will be dropped or combined. There's a news archive of about 550 pages, and a webshop in html, about 70 pages that will likely be left as-is or dropped altogether. There are 470 pages that are certain to go into the new site. The images needs to be relinked. All in all if it can be done using some automation would be my preference Smiley
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!