Search function

Talk about new features for CMSMS and modules.
westis

Re: Search function

Post by westis »

Piratos has mas made a module of pisearch, that supposedly also searches news articles (don't know about searching other modules, the project has just been approved).
Piratos

Re: Search function

Post by Piratos »

Visible Parts of content and News (if one is activ and in time).

Other wishes ?

I need translations of the plugin pisearch template , because with the module it is controlled with the language name (en_US, de_DE etc.).

The templates are stored with the install. If i have more templates in other languages it is better for the start of the new module.

I have 14 days time because in june i have to spend a lot of time with custumers. Need quick replys.
westis

Re: Search function

Post by westis »

Thanks Piratos, I'm sure lots of people will appreciate this.

It would be great if you could use svn, as we then can use the Translation Center to easily add translations. Instead of having one template for each language you then just add a language variable in the template file. As soon as the files, with the en_US.php file with the language strings in the /lang folder, has been added to svn the project can be added to the Translation Center and people can translate to different languages. With external set for getting these language files, they can be included automatically with the release.


I'm sure you know how to use language strings in a module, to use only one template instead of one for each language. But in case someone is thinking of making a localized module here's how:

In the module, assign a language string to a Smarty tag like this:

$this->smarty->assign ('name_of_smarty_tag_for_lang_string_one', $this->Lang ('name_of_lang_string'));

Process the template (that is in a .tpl file in the templates sub-folder) like this:

echo $this->ProcessTemplate ('templatename.tpl');


The .tpl file can look like this:

{$name_of_smarty_tag_for_lang_string_one}
{$name_of_smarty_tag_for_lang_string_two}



That way there's only one template file, that takes the value for each language string from the translation for the language that is selected in the admin panel or set by a parameter in the module tag.


On the side of feature requests, it would be great with a drop-down where one can choose what section one wants to search, like News or Entire site. If searching modules also is added, they can be added in the dropdown too. For example searching files that are uploaded with the Uploads module, which would be great.

Possibly an advanced search button could be added too, where these more advanced search options could be selected.
Last edited by westis on Wed May 17, 2006 7:07 pm, edited 1 time in total.
Piratos

Re: Search function

Post by Piratos »

It would be great if you could use svn
It was a long way but now i have found a way  to use the needed apache folder with windows and linux via usb stick.

So for this project i will use SVN Version 1.3.3 for windows.
Ron@Spikecity

Re: Search function

Post by Ron@Spikecity »

Piratos wrote: Visible Parts of content and News (if one is activ and in time).

Other wishes ?

I need translations of the plugin pisearch template , because with the module it is controlled with the language name (en_US, de_DE etc.).

The templates are stored with the install. If i have more templates in other languages it is better for the start of the new module.

I have 14 days time because in june i have to spend a lot of time with custumers. Need quick replys.

I'd be honored to do the nl_NL part for you ;)
Piratos

Re: Search function

Post by Piratos »

Pisearch as a module is ready and you can download it on the dev on Saturday.

This module is searching in Content and in News (Summary and news_data).

If i had time i will enable searching in gastbuch.
Piratos

Re: Search function

Post by Piratos »

And so it looks with 2 results (first is a content, second is a news):



[attachment deleted by admin]
Piratos

Re: Search function

Post by Piratos »

Module pisearch is ready to work and ready in the dev to download it.
alby

Re: Search function

Post by alby »

Piratos wrote: Module pisearch is ready to work and ready in the dev to download it.
In Patches there is a Italian translation

Alby
remc0
New Member
New Member
Posts: 2
Joined: Sat May 27, 2006 6:30 pm

Re: Search function

Post by remc0 »

Piratos wrote: Module pisearch is ready to work and ready in the dev to download it.
In Patches there is a Dutch translation

Remco
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Search function

Post by Ted »

Did I say 8-10 weeks?  I meant days...  :)

Anyway, a working version of Search is in svn.  It SHOULD work with 0.13, though it needs some testing.  I've also integrated it into the News module (also in svn), so for really good testing, you should grab that as well...

Let me know how it goes if anyone tries it.  Thanks!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Search function

Post by Dr.CSS »

which files in SVN do i need to update my install of News/Search...

  mark
Piratos

Re: Search function

Post by Piratos »

You need only the module pisearch .
Post Reply

Return to “Feature ideas”