Welcome, Guest. Please login or register.
March 14, 2010, 05:40:55 AM

Login with username, password and session length
Search:     Advanced search
WB 2.8.1 released!
Download and additional information are available here .
109808 Posts in 15865 Topics by 9250 Members
Latest Member: Becker
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Help Creating Module
Pages: [1] Go Down Print
Author Topic: Help Creating Module  (Read 302 times)
VotreEspace

Offline Offline

Posts: 259


Web Dev & tickler


WWW
« on: May 29, 2009, 05:34:26 PM »

I'm creating a module that need to be in the search capabiliy of WB, but i've never done that

i've check other modules, other install.php to see how it's done... i'm lost

i've search help.websitebaker2. org... nothing ?

i've search the forum and didn't find anything on the subject

is there a page that explain how to install a module in the search section?

or could somebody explain it to me ?
Logged

Ruud
Development Team
******
Offline Offline

Posts: 1263


[[droplets]]


WWW
« Reply #1 on: May 30, 2009, 12:17:41 AM »

The search in WB2.7 is pretty easy to use. It is nothing else than creating a search.php in the module directory.
Unfortunately there is no English (or French) manual. Just the German FAQ on thorn's website.

Basically you do not install anything in the search table anymore.
Create a function with the name your_module_search().
In there you can get info and variables from the search engine. Next you can decide what data will be available to be found by the search function, and you return that data in the defined array.

The manual page is translated pretty good by Google. That might help a bit.

You could also have a look at the search.php in my Multipart page module to see another example.

Ruud
Logged

VotreEspace

Offline Offline

Posts: 259


Web Dev & tickler


WWW
« Reply #2 on: May 30, 2009, 01:04:23 AM »

that's Great! thank!

But WB need a dev wiki so dev can make thoses kind of help pages !
Logged

doc

Offline Offline

Posts: 3579


« Reply #3 on: May 30, 2009, 08:21:05 AM »

Hi,

Quote from: VotreEspace
But WB need a dev wiki so dev can make thoses kind of help pages !
Or some volunteers who finalize the work on the module primer or update the hello world module or the help pages  wink

Regards Christian
Logged
Stefek
Backend Theme Team
******
Offline Offline

Posts: 3137



WWW
« Reply #4 on: May 30, 2009, 11:40:29 AM »

But WB need a dev wiki so dev can make thoses kind of help pages !

Personally I think there should be 2 parts of the documantation.
ONE for beginners and non coders and the
SECOND for "hardcore" coders and those wanting to start their own Module Projects.

The second one should be set up as a wiki.
The first one may stay as it is (but updated from time to time).

'Regards,
Stefek
Logged

Bowling in Kiel Halle Aschaffenburg

"Es gibt viele Pfade am Fuße des Berges,
doch von der Spitze aus, erblicken wir alle den selben Mond."
jap. Sprichwort
Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!