This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Ajax Pro Search Issue

#19042
Ernest MarcinkoErnest Marcinko
Keymaster

Hi Jonatan,

Changing the links within the search results is not the problem, that can be done easily. The problem is, how to get the link? Because there is no information about where the match has occured. It could occur in multiple places as well. The database only returns the matches (rows), but no other information – so there is no way of telling where the match is.

Maybe, somehow, during the post process, it could be possible to check the whole search phrase against the post content, and locate it with strpos(..) function. Then somehow locate the closest preceeding tab. Then somehow get the tab ID to forge the URL. I guess that could work, but this is still not an easy task.