Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Christoph C. Cemper on
Hi,
I am just struck with the problem that I important a ton of content into my drupal 4.7,
taxonomy works, node works, everything...
(the import was done via a bunch of sql scripts)
- but now I enabled the excerpt module and want to autogenerate the excerpts that are usually
generate with the "edit" function
- also I'd like to apply another input filter (textile) to all the nodes
How can I trigger a reprocessing of all nodes???
thanks in advance, help is much appreciated!
Christoph
Comments
I just figured that the node
I just figured that the node api could help
the node_save function ( http://api.drupal.org/api/4.7/function/node_save )
would probably allow to run thru all the filters, plugins etc...
So all I need is probably a script that does this:
- loop over all nodes that I specify (how?)
---> node_load (nid)
(maybe set teaser to NULL first)
---> node_save(nid)
- end loop
that should do it, or?
anyone got such a script? can't believe I am the first one
christoph
just found the same issue -
just found the same issue - without soltion - from 1 month ago here
http://drupal.org/node/62954
fetching the devel.module
fetching the devel.module gives you an update-teaser.php script ... 2 years old
throws an error
Fatal error: Call to undefined function: db_query() in ...
my first try
ok - this stoneage code did nothing but fail
here's some code I just got running for updating all teasers (reprocessing all nodes and generating the excerpts required)