PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Search results linking to page with link to result

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Search results linking to page with link to result

    Hi, we are looking for a way for our search results to link to a page that has a link to the result rather than the result itself. For example, if the search query is found in a .pdf file that is linked to on another page, we want that other page to be the one that shows up in the search results since it will have additional information on it not contained in the document. We are using Wordpress, so one option we were considering is getting a list of all posts and searching each one for a link to the document, then displaying those; however, this seems inefficient, and we were wondering if there is a better way to do this, and if so, in what files/functions it would make the most sense to implement it in in order for Zoom and Wordpress to communicate with each other.

    All help is appreciated,

    Thanks.

  • #2
    What do the URLs look like to the PDF or the linking page? If there is any pattern that can be matched by a search and replace, you could use the Rewrite Links feature (found under "Configure"->"Indexing options"), for example if your PDF files are here:

    http://www.mysite.com/docs/myfile.pdf
    http://www.mysite.com/docs/myfile.pdf.html

    Then you can use the rewrite to replace ".pdf" with ".pdf.html" in the URLs.

    Or,

    http://mysite.com/download.php?=myfile.pdf
    http://mysite.com/info.php?=myfile.pdf

    Then you can replace "/download.php" with "/info.php"
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment

    Working...
    X