update a static html file every day to drupal.
flourishing - September 22, 2007 - 01:36
| Project: | Import HTML |
| Version: | 5.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | flourishing |
| Status: | active |
Jump to:
Description
the statick html is very cool , but i need a good feature. i think maybe you know how to do or prepare to add this feature to this good module.
the situation is like this. there is another system make system report by a static html file every day. i use a ftp tool scedule it send the html file to website some folder every day some time. and i need that when the report has uploaded, the drupal can update it to the node. maybe we can use cron.php to do this. and this is not only. maybe we have serveral systems reports, i want uploat them and mke them can update by drupal like i said. this is cool feature. thank you.

#1
The static extension is still very experimental - just proof-of-concept so far as I haven't worked on it much recently, but glad you can see what it's supposed to be doing.
Yes, having FTP-uploaded files integrated as nodes is precisely one of the use cases I was thinking of!
At the moment, it should get triggered when the timestamp changes (and it's requested next), so no need for cronjobs. BUT that's for updating existing node/files that get replaced externally.
So this doesn't yet add or absorb brand new files - such as from an FTP drop directory, which I guess is a good extension feature. Yeah, I guess cron is for that.
The tricky bit is probably creating a UI for the rules that this task would require. We already have different profile 'instances', so that's a good start. I guess 'scan for new files in this directory' would be a checkbox, plus a cron schedule. ... but there's a lot of extra bits to making a node that may be hard to define (menu location, node type). Still, most of that is already possible with the import_html preferences I guess :).
Certainly do-able.
So you need new files/nodes each time? With the old ones archived?
#2
i need new files update and the oldones achieved optional will be very good. thank you for your reply