Untitled Results

Post Reply
michaelbarton
Posts: 13
Joined: Mon May 23, 2005 3:27 pm

Untitled Results

Post 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?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Untitled Results

Post 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.
michaelbarton
Posts: 13
Joined: Mon May 23, 2005 3:27 pm

Untitled Results

Post by michaelbarton »

Are there instructions (or a link) to how I can modify the scripts?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Untitled Results

Post 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>
michaelbarton
Posts: 13
Joined: Mon May 23, 2005 3:27 pm

Untitled Results

Post 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))
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Untitled Results

Post by mark »

"search"
The default location would be under the webinator subdirectory of your webserver's document root.
michaelbarton
Posts: 13
Joined: Mon May 23, 2005 3:27 pm

Untitled Results

Post 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!
Post Reply