Question
There is a link tree. It is in TWiki-Format [[link/to/file.html][Description]] to stay dynamic. How can I search after the contents in the static linked html fiel tree.
With the HTML2TML cotribution
From Frederic Ludeni
I generated a TWiki tree:
#!/bin/bash for t in `find . -name \*.html
do ../htmltotwiki.sh $t > $t.new
mv -f $t.new $t
done
But this tree is only searched (search.pm) flat not traversed deep. The contrib module SearchEngineKinoSearchAddOn is installed too.
There is following idea: To get rid of flat search, insert some lines like these in %TWIKIHOME%/lib/TWiki/Search.pm
@870
:875:
system_call("find /home/elvira/twiki/ext -type f | egrep -v '(verything.net)' | perl -pe 's/..//' | sort > /home/elvira/extResult"); #<<<ADDED _moz-userdefined="" extresult,="" open="" ;="" .="\n" $extresult=""> /home/elvira/extResult" or die; #<<<ADDED _moz-userdefined="" #="" $extresult;="" extresult="" print=""><<<ADDED _moz-userdefined="" #="" .="$extResult;" $searchresult=""><<<ADDED _moz-userdefined="" .="$beforeText;" $searchresult="" />
But this does not work. Why? There is no error in the apache errorlog.
Is there another way to search in extern located (not in web) files with traversing the directory structure?
Following is shown a directory with html files located in /var/www/htdocs/twiki/externhtml.
This structure is only a part of a hughe 20MB html file tree.
Environment
--
ElviraMiller - 08 Mar 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Sorry, closing this question after more than 30 days of inactivity. Feel free to re-open if needed.
--
PeterThoeny - 01 May 2008