PDA

View Full Version : Linking the URL



Anonymous
03-16-2005, 09:49 PM
Hello,

I realize in order to link the URL line, I will have to modify the search.php file.

Could anybody please help me with the code to do this? My PHP skills are very limited :)

Thank you very much.

L.

Ray
03-17-2005, 12:17 AM
I'm not exactly sure what you mean, can you clarify what you are trying to link?

The URL for a search result is automatically linked via the title of the page. eg:


1. This is the title of the page
Clicking on the above title will go to the URL
Terms matched: 3 - URL: http: //www.mysite.com/blah/
Perhaps you mean, you want to change the grey URL information line ("URL: ... ") at the bottom of each search result to be a clickable link? This would indeed require modifying the PHP and we would only recommend this to people who are familiar with scripting (or are willing to take the risks). We do not provide support for customized scripts.

A better alternative however, may be to disable the title to each search result in your Indexer configuration (click "Configure" -> "Results layout" -> "Title of page"). This will produce the following result format with the URL on the first line being clickable:


1. http://www.mysite.com/blah/
Clicking on the above link will go to the URL
Terms matched: 3 - URL: http: //www.mysite.com/blah/
You can also disable the grey URL info line, from that same configuration window.