Code snippets worden meestal niet geïnstalleerd zoals modules.
Soms hoeft u de snippet alleen maar te kopiëren naar de template. Soms wordt er een nieuwe functie geïnstalleerd en moet u de code in de template aanpassen. Lees dus de WebsiteBaker-opening post om te zien wat u moet doen.
Dit type module laat u toe om eigen functies toe te voegen die uitgevoerd kunnen worden vanaf het index.php bestand van uw template of van een page/section van het type: Code. WebsiteBaker bevat geen snippets na de standaardinstallatie.
Code snippets worden geïnstalleerd via de WebsiteBaker backend: Add-ons -> Modules -> Install Module. Alle functies vermeldt in het include.php bestand van de code snippet kunnen gestart worden vanaf het index.php bestand van uw template of vanaf een page/section van type code.
De lijst hieronder toont u alle beschikbare snippets voor WebsiteBaker.
AnyNews ( > WB2.8 ) 2.4.0
|
| AnyNews ( > WB2.8 ) Details: |
| Versie |
2.4.0
|
| Licentie |
GPL |
| Laatste update |
09.05.2012 |
| Download Counter |
355 |
| Ontwikkelaar |
cwsoft |
| Ontwikkelaar website |
Open link |
| Documentation Url |
Open link |
| Addon type |
Snippet |
| Categorie |
Content |
| WebsiteBaker Versie |
>= 2.8.2 |
| PHP Versie |
>= 5.2.2 |
|
|
The code snippet Anynews is designed to fetch news entries from the WebsiteBaker CMS news module. Just call the Anynews function displayNewsItems(); where you want the news output to appear on your frontend. Optional function parameters, HTML templates, content placeholders and CSS definitions allows you to style the news output the way you want. Anynews ships with four templates - including two jQuery sliding effects - ready to use out of the box.
Power users define their own placeholders containing information extracted from the short and/or long news module description. Mastering Anynews is possible - but requires you to study the information provided in the section Customizing Anynews at GitHub |
The code snippet Anynews is designed to fetch news entries from the WebsiteBaker CMS news module.
|
| ShowMenu2 Details: |
| Versie |
4.9
|
| Licentie |
GNU-GPL |
| Laatste update |
01.10.2010 |
| Download Counter |
22195 |
| Ontwikkelaar |
Brodie Thiesfield |
| Ontwikkelaar website |
Open link |
| Documentation Url |
Open link |
| Addon type |
Snippet |
| Categorie |
Anders |
| WebsiteBaker Versie |
>= 2.6.7 |
| Forum Discussie (EN) |
Open link |
|
|
This snippet adds the new function: show_menu2()to WebsiteBaker.
The function is a very powerful replacement for the built in function show_menu().
It is included in WebsiteBaker since version 2.7.
See the snippet thread of the WB forum for further information. Details about the function parameters can be found in the English README (EN) or German README (DE) files. Visit this website to get an impression what the function is all about. Compatible with WB 2.6.x and WB 2.7.x.
Invoke the function from the index.php file of your template or from a page/section of type code.
Note: If your menu disappears after submitting a search, follow the steps described in the module thread... |
This snippet adds the new function: show_menu2()to WebsiteBaker.
Anynews ( < WB2.8 ) 1.15 (Jan 29, 2010)
|
| Anynews ( < WB2.8 ) Details: |
| Versie |
1.15 (Jan 29, 2010)
|
| Licentie |
GNU-GPL |
| Laatste update |
04.10.2010 |
| Download Counter |
17050 |
| Ontwikkelaar |
C. Sommer (doc), Further maintained by: BlackBird, |
| Addon type |
Snippet |
| Categorie |
Content |
| WebsiteBaker Versie |
>= 2.7 |
| Forum Discussie (EN) |
Open link |
|
|
This snippet adds the new function: displayNewsItems() to WebsiteBaker. The function can be used to display news entries from the WebsiteBaker News module on any page you want. Details about the optional function parameters and tips and tricks to adjust the output to your needs are contained in the README (EN, NL outdated) files. For help or feature requests, please visit the Anynews forum thread.
Supported languages: English, German, French, Dutch and Estonian.
Note: invoke displayNewsItems() from the index.php file of your template or from a page/section of type code
|
This snippet adds the new function: displayNewsItems() to WebsiteBaker.
|
| Last Update Info Details: |
| Versie |
0.3
|
| Licentie |
GNU-GPL |
| Laatste update |
01.10.2010 |
| Download Counter |
9138 |
| Ontwikkelaar |
Peter Vroegop |
| Addon type |
Snippet |
| Categorie |
Anders |
| WebsiteBaker Versie |
>= 2.8 |
|
|
This snippet adds the new function: get_modified_when() to WebsiteBaker.
The function displays the date and the name of the last author of a page. The function is invoked without any parameters.
Note: invoke the function from the index.php file of your template or from a page/section of type code |
This snippet adds the new function: get_modified_when() to WebsiteBaker.
|
| RandomImage Details: |
| Versie |
0.11
|
| Licentie |
GPL |
| Laatste update |
01.10.2010 |
| Download Counter |
13833 |
| Ontwikkelaar |
pcwacht |
| Addon type |
Snippet |
| Categorie |
Afbeeldingen |
| WebsiteBaker Versie |
>= 2.6.7 |
|
|
This snippet adds the new function: RandomImage() to WebsiteBaker. The function displays a random image from a specified directory. As parameter the directory path starting from the WB root directory is required.
To display a random image from the subfolder '/pics' within the MEDIA directory, use: RandomImage(MEDIA_DIRECTORY .'/pics');
Note: invoke the function from the index.php file of your template or from a page/section of type code; the specified subfolder must contain at least two images (other wise you will see an error message). |
This snippet adds the new function: RandomImage() to WebsiteBaker.