I simply created Drupal nodes programmatically. Turned out to be easiest.
Creating new Drupal nodes based on created HTML output
-
29-11-2021 - |
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:
- Run script (cron or user-instigated)
- Generate HTML content and put it to some sort of local file
- 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.
Solution 2
OTHER TIPS
Have a look at the Import HTML module.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow