Search function
Re: Search function
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).
Re: Search function
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.
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.
Re: Search function
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.
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.
Re: Search function
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.It would be great if you could use svn
So for this project i will use SVN Version 1.3.3 for windows.
Re: Search function
I'd be honored to do the nl_NL part for youPiratos 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.

Re: Search function
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.
This module is searching in Content and in News (Summary and news_data).
If i had time i will enable searching in gastbuch.
Re: Search function
And so it looks with 2 results (first is a content, second is a news):
[attachment deleted by admin]
[attachment deleted by admin]
Re: Search function
Module pisearch is ready to work and ready in the dev to download it.
Re: Search function
In Patches there is a Italian translationPiratos wrote: Module pisearch is ready to work and ready in the dev to download it.
Alby
Re: Search function
In Patches there is a Dutch translationPiratos wrote: Module pisearch is ready to work and ready in the dev to download it.
Remco
Re: Search function
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!

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!
Re: Search function
which files in SVN do i need to update my install of News/Search...
mark
mark