Pisearch Clean URls'

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Pisearch Clean URls'

Post by Russ »

I've been fiddling with Piratos's excellent new search module. I've added clean url handling, if you use mod rewrite, and also some extra options for news to set the base page (for clean url's). We really need the news module (and album etc.) to start it's clean url from a specified point or calling page, rather than root/news, but untill then this is the best I can do.

I'd be interested to know how much it slows down on big CMS sites, the code is botched together, but works and there is probably a much better way to do this.  You can download the changed pisearch.module.php.zip for testing - I've not updated any of the version stuff or help - from the link.

http://www.cms.shoesforindustry.net/cmsmodules/search/

To test it try entering 'Test' in the search - the last one is news.

The options added to the results search tag are...

    * callpath="news" - sets the text for the news from the root - should be 'news'.
    * callpageid ="82" - sets the id of your main news page - mine is '82'

I keep meaning to write a new results template using un-ordered lists and some nice formatting, I'll get round to it one day ;-)

Enjoy,
Russ
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

Re: Pisearch Clean URls'

Post by stopsatgreen »

That works a treat!

One thing: instead of using just the ID of my news page (42) I had to use 42.html - I guess because of the way I've got the .htaccess or mod_rewrite (not sure which) set up.
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Pisearch Clean URls'

Post by Russ »

Yes, to be honest stopsatgreen, this is a bit of a botch and needs some more work, but it really needs News to be updated first. How does it work for you?

Russ
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

Re: Pisearch Clean URls'

Post by stopsatgreen »

It works really well. Very happy. Now I just wish there were some way to set a limit on the number of characters returned in the summary, and then I'll be delighted.
Piratos

Re: Pisearch Clean URls'

Post by Piratos »

The next Version of Piserach comes next Sonday and this version  takes something of the patched version.
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

Re: Pisearch Clean URls'

Post by stopsatgreen »

Good news! It's mainly just the clean URIs that are needed, the rest of the module works very well.

Of course, there's the feature I keep requesting; set a character limit on the results returned. That would be very nice.

Oh, and while I think of it, maybe a parameter to exclude pages and just search news?
Piratos

Re: Pisearch Clean URls'

Post by Piratos »

parameter to exclude pages
This parameter exists.
Piratos

Re: Pisearch Clean URls'

Post by Piratos »

The next version (comes this sunday)set the links to the matches from content identically with the settings of the cms - config.

Links to matches of news are working without changing the method of version 1.0, because Pisearch never knows the page
where the News module was set.
Other Methods like additional parameters have a less worth and there are not user friendly.
We want only display a match and that is it.

The output of news matches is corrected - we only need the details and not the small summary display too.

With the new parameter textlength you can change the length of a match - output.
The new default is 100 instead of 200 chars.

Some variables are unset now after work to reduce memory.

No one has seen, that the install of the page PiSearch does not work with postgresql.
This "Bug" was not a bug it was a test.
It shows me that nobody is using postgresql.
In this version a have delete this bug.
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Pisearch Clean URls'

Post by Russ »

I look forward to it Piratos. I think ;-)

Russ
Piratos

Re: Pisearch Clean URls'

Post by Piratos »

New Version 1.01 is in the dev.
Ron@Spikecity

Re: Pisearch Clean URls'

Post by Ron@Spikecity »

Piratos wrote: New Version 1.01 is in the dev.
I see you got my email holding the dutch language file ;)
remc0
New Member
New Member
Posts: 2
Joined: Sat May 27, 2006 6:30 pm

Re: Pisearch Clean URls'

Post by remc0 »

Piratos wrote: New Version 1.01 is in the dev.
The updated dutch translation is here for download.
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

Re: Pisearch Clean URls'

Post by stopsatgreen »

Is the Clean URIs for News functionality due to be addressed in an upcoming release? I'd like to have the character limits parameter, but don't want to overwrite the file if my Clean URIs go.
Piratos

Re: Pisearch Clean URls'

Post by Piratos »

Links to matches of news are working without changing the method of version 1.0, because Pisearch never knows the page
where the News module was set. Other Methods like additional parameters have a less worth and there are not user friendly.
Clean url can with news only be done with additional parameters to set the pageid where news is set in.
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Pisearch Clean URls'

Post by Russ »

Yet another great version from Piratos ;-)
For the one I use, I've added back into this version (1.01b of the pisearch module), the options to set the news path and hopefully fixed the bit for extensions.

You can download it from:
http://www.cms.shoesforindustry.net/cmsmodules/search/

Russ
Post Reply

Return to “Modules/Add-Ons”