Uploading static HTML files to Drupal
Hi All, There was this thread about importing static HTML into Drupal at http://lists.drupal.org/archives/development/2006-01/msg00591.html. I spent a few days writing an elementary Drupal class in Python (yeah! Python for a PHP webapp. I wanted to learn Python :)) which lets you add/edit Drupal (version 4.7) nodes programatically. I wrote a small upload app using this class which uploads a directory tree containing static HTML pages to Drupal and rewrites all relative URLs to point to approriate drupal nodes. The files are available at http://puggy.symonds.net/~natarajan/code/drupal/uploader.tar.gz Comments, brickbats, suggestions welcome. Natarajan -- http://puggy.symonds.net/~natarajan
Nice! I did something similar for 4.5 using perl. I think that various folks at CivicSpace have been up to something along these lines also to help with the old 'admin help text' issue, so I guess there's pleny of applications. If you want the directory hierarchy of HTML files to be a Drupal book, you might want to check out my bookimport.module. I'm just re-writing (in PHP) a command line script to covert a suitable directory into an XML file which can be imported. Djun On 1-Feb-2006, at 9:33 PM, Natarajan K wrote:
Hi All,
There was this thread about importing static HTML into Drupal at http://lists.drupal.org/archives/development/2006-01/msg00591.html.
I spent a few days writing an elementary Drupal class in Python (yeah! Python for a PHP webapp. I wanted to learn Python :)) which lets you add/edit Drupal (version 4.7) nodes programatically.
I wrote a small upload app using this class which uploads a directory tree containing static HTML pages to Drupal and rewrites all relative URLs to point to approriate drupal nodes. The files are available at http://puggy.symonds.net/~natarajan/code/drupal/uploader.tar.gz
Comments, brickbats, suggestions welcome.
Natarajan -- http://puggy.symonds.net/~natarajan
Check the Import HTML module http://drupal.org/node/46008 On 2/2/06, Natarajan K <knutties@gmail.com> wrote:
Hi All,
There was this thread about importing static HTML into Drupal at http://lists.drupal.org/archives/development/2006-01/msg00591.html.
I spent a few days writing an elementary Drupal class in Python (yeah! Python for a PHP webapp. I wanted to learn Python :)) which lets you add/edit Drupal (version 4.7) nodes programatically.
I wrote a small upload app using this class which uploads a directory tree containing static HTML pages to Drupal and rewrites all relative URLs to point to approriate drupal nodes. The files are available at http://puggy.symonds.net/~natarajan/code/drupal/uploader.tar.gz
Comments, brickbats, suggestions welcome.
Natarajan -- http://puggy.symonds.net/~natarajan
participants (3)
-
Khalid B -
Natarajan K -
puregin