Question

I have a module in Drupal 6 that parses an XML feed and creates HTML output. Essentially, I have a long string of the HTML that should populate that page. This is being done on a local server at the moment.

What I would like to do is take that output and create new nodes with it. I've seen that, with the Feeds module, I can import content. What I would like to do is have the following procedure:

  1. Run script (cron or user-instigated)
  2. Generate HTML content and put it to some sort of local file
  3. Import that content with a module on my production server (Feeds or otherwise)

As I mentioned, my HTML content is currently exactly as I want it. However, it needs to become static nodes (for posterity's sake). I can programmatically generate the HTML for each node, however I'm not sure what the best way to do this would be.

Was it helpful?

Solution 2

I simply created Drupal nodes programmatically. Turned out to be easiest.

OTHER TIPS

Have a look at the Import HTML module.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top