[contributions:dman] /modules/import_html walkthough.htm /modules/import_html import_html.module
User: dman Branch: HEAD Date: Sun, 03 Dec 2006 11:18:59 +0000 Added files: /modules/import_html walkthough.htm Modified files: /modules/import_html import_html.module Log message: Started supporting CCK If your input contains ANY classes at all, the content of those classes becomes available for absorbing into the node. If the input contains any ID elements, those too are added to the node object before saving. most of these extra blocks do not get serialized, as there is no handler for them BUT If you are importing to CCK, AND can manipulate your input so as to define ids of the form field_* - this block will be put in that cck field. So... if your input contains ... [div id='footer'][b]blah[/b][/div] ... and yo have a CCK node definition that includes a field called 'footer' - you need to work on your XSL import massager to make a conversion to [div id='field_footer'][b]blah[/b][/div] Once that is, done, the import_html process can detect that this is a ver special ID in the source document, and inject it into the CCK object as $node->field_footer[0][value] = "[b]blah[/b]"; and things become good Links: http://cvs.drupal.org/diff.php?path=contributions/modules/import_html/walkth... http://cvs.drupal.org/diff.php?path=contributions/modules/import_html/import...
participants (1)
-
drupal-cvs@drupal.org