New Message: Re: Bulk search and replace

webmaster at userland.com webmaster at userland.com
Thu Mar 26 10:11:07 CDT 2009


A new message was posted:

Address: http://manila.userland.com/discuss/msgReader$3432

By: Lawrence Lee (lawrence at userland.com)

You can use the table.visit verb to loop over the #templates table:

http://docserver.userland.com/table/visit

If you search through mainResponder.root you can probably copy/modify the code. Here's a similar example, but you just need to modify it to do a search/replace on the object.

on visitproc (objectAdr) {
 if string.lower (objectAdr^) contains \"jupiter\" {
 msg (objectAdr);
 htmltext = htmltext + string (objectAdr^)}};
for item in \@config.manila.themes {
 table.visit (item, \@visitproc)}

Yes, the cache is saved there.

Lawrence

This is a Manila site... http://manila.userland.com/.




More information about the Manila-Users mailing list