Modify search result page title for a document which is not a web page ?

Post Reply
webmaster2697
Posts: 12
Joined: Thu Oct 05, 2006 4:15 pm

Modify search result page title for a document which is not a web page ?

Post by webmaster2697 »

Hello,

We are indexing legacy system text files and I have received a complaint about all the linked page titles coming out as "untitled". Naturally the text files do not have an HTML "title" tag.

Is it possible to substitute "untitled" for the file name?

Thank you,
Bert
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Modify search result page title for a document which is not a web page ?

Post by mark »

If everything lacking titles has the same extension you can force the filename for all pages by using data from field.

Search: /=[^/]+\.txt=>>=
Replace: \2
Field: URL
Which Field: Title

If all files regardless of extension should use the filename for the title remove the "\.txt=" from Search.
Post Reply