Page 1 of 1
Untitled Results
Posted: Tue Jul 19, 2005 11:54 am
by michaelbarton
I am using webinator 4. Some of the results are for pages that have no <title> tag. Is there a way to specifiy a default page title to display in the search results?
Untitled Results
Posted: Tue Jul 19, 2005 12:52 pm
by mark
You must have particularly old scripts. Later version 4 searches display --No Title-- for those. You can modify the search script where it outputs $Title to print something else if it's empty. Or download the last version 4 script from the website.
Untitled Results
Posted: Tue Jul 19, 2005 12:57 pm
by michaelbarton
Are there instructions (or a link) to how I can modify the scripts?
Untitled Results
Posted: Tue Jul 19, 2005 2:12 pm
by mark
Use your favorite editor that can save in the original ascii format of the script file. Vortex (the scripting language) docs are online under tech support. Precise instructions would depend on the exact version of your script. But basically you'll find $Title being output somewhere. Put an <if> around it. Maybe something like
<if $Title eq "">
--No Title--
<else>
$Title
</if>
Untitled Results
Posted: Tue Jul 19, 2005 4:29 pm
by michaelbarton
cool, one last question...what is the name of the script that I need to edit? (and where would the location be (on a unix server))
Untitled Results
Posted: Tue Jul 19, 2005 4:49 pm
by mark
"search"
The default location would be under the webinator subdirectory of your webserver's document root.
Untitled Results
Posted: Tue Jul 19, 2005 4:59 pm
by michaelbarton
EXCELLENT! It worked!
I found this...
<IF $Title eq ""><!-- no page title, give something to click on -->
<$Title="Untitled">
</IF>
I just changed "Untitled" to "Web Article"
Thanks for your help!