Search results Editing

Hi,

On your search results in HTML exe, your script is setup to show the results using the title of the page and link. Since my site is created with css, using the (title)name of the page as div id=“name”., the titles of the pages are empty, so in the results, it shows a blank then underneath it says display underlined, so you have no idea what the name of the page it.
I’d show the links but they are also by code not what they are pertaining too. Is there a way to change the script so that the search results target the “name” tag instead of the title? To manually add a title to each page would defeat our scripting. Please let me know thanks.

Lorry

By default, the search engine uses TITLE tags to find out the title of pages. The sole way to avoid the “blank” is to modify the way your publication displays search results.
To do that, go to the Publication Settings => Localization tab. Modify SSearchResHTMLCellFormat:

<tr><td width="3%%" align="left" valign="top">%s.</td><td width="96%%" align="left" valign="top">%s<br><a href="%s">%s</a></td></tr>

The second “%s” is replaced by HTMLExe with the title of the page. You can change this HTML code to something different like:

<tr><td width="3%%" align="left" valign="top">%s.</td><td width="96%%" align="left" valign="top"><!-- %s--><a href="%s">%s</a></td></tr>

Be sure to not remove the three “%s” from your code, otherwise an error will occur.

Do the same for SSearchResHTMLCellFormatAltern

I see it took the title listing out. Wasn’t quite what i was looking for.

Was hoping I could point the title search to the code on the html that reads

, this is on all html pages. That is what lists the title instead of the name. Please let me know if this is possible. thanks.

HTML Executable collects page titles when parsing HTML files for keywords (during compilation), so you can’t tell it to read data from

instead of TITLE tags. I’m afraid that there is no other solution.

ok, didn’t think i could, but thank you :slight_smile: