Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 04:02:24 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149664 Posts in 21100 Topics by 7539 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Help Creating Module  (Read 538 times)
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« on: May 29, 2009, 04: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

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Ruud
Board member
WebsiteBaker Org e.V.

Offline Offline

Posts: 2094



WWW
« Reply #1 on: May 29, 2009, 11:17:41 PM »

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

Professional WebsiteBaker Developer
Xagone
AddOn Development
*
Offline Offline

Posts: 453



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

that's Great! thank!

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

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
doc
Guest
« Reply #3 on: May 30, 2009, 07: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
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #4 on: May 30, 2009, 10: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

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!