Search Result Template

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
qbrix
Forum Members
Forum Members
Posts: 24
Joined: Fri Nov 10, 2006 7:56 pm

Search Result Template

Post by qbrix »

I'm working on designing the Result Template for the Search Module and want it to look more like google in functionality. In other words for each result it shows the title, a small excerpt from the result, and the url. By default the Search Module has two of these in its default Result Template. But what about things like the excerpt? In pisearch it has that paramater ($entry->details), does the Search Module have this parameter or something similar? Is there a list of available parameters?

I'm pretty sure this is possible in CMS because this site seems to pull off exactly what I want (at least I think it's CMS):
http://www.kreatives-chaos.com/suche?q=test

any help would be greatly appreciated, thanks
Last edited by qbrix on Thu Apr 12, 2007 2:59 pm, edited 1 time in total.
qbrix
Forum Members
Forum Members
Posts: 24
Joined: Fri Nov 10, 2006 7:56 pm

Re: Search Result Template

Post by qbrix »

I'm curious, does anyone modify their search or just keep it at default?

Another interesting point. When you look at the results of the default search, it shows the title followed by a hypen followed by the title again. The default template has the following: $title - $urltext ($weight%)

Empirically both $title and $urltext are always identical. Furthermore looking at the code you see that they are explicit copies of each other. Whats the point of that? From what I can tell so far, what I want isn't possible with the search module. At this point I would just be happy with the excerpt of text the search found the keyword inside of.

Ideas? Thoughts?
Last edited by qbrix on Thu Apr 12, 2007 2:59 pm, edited 1 time in total.
qbrix
Forum Members
Forum Members
Posts: 24
Joined: Fri Nov 10, 2006 7:56 pm

Re: Search Result Template

Post by qbrix »

Ted cleared the issue up. This functionality doesn't exist in the Search Module, but rather it does in pisearch.
Post Reply

Return to “CMSMS Core”