Droplets are small chunks of PHP which can provide multiple information. You can use them e.g. for displaying the content of a specific section, generate a subnavigation or showing the output of your own PHP functions. With the Droplets module for you can easily import and export droplets.
If you have created a droplet you would like to share with the WBCE community, please use our forum at forum.wbce.org.
BTW, many droplets are already included in WBCE CMS.
- Font Awesome
Simple Way to place Font Awesome icons in the text, e.g. [fa?f=lightbulb-o] ] or [ [fa?f=lightbulb-o&size=2x]] (up to 5x)
. Requires the Font Awesome webfont CSS to be loaded (either by CDN or included to template). Has now the possibility to set the size, e.g. Example: [
- Get Section By Name
Modification of the Section Picker Droplet. This one uses not the ID but the name (if given) of a section to fetch its contents.
- MP4 Video
Generate a HTML5 video tag for mp4 files in the media folder.
- OSM Map
Creates an OpenStreetmap tile with an marker and a comment. Example: (This droplet is a contribution of WBCE community member berny)
Imageslider using keyframes, created by frankw. See https://forum.wbce.org/viewtopic.php?pid=24131#p24131 or droplet notices for details.
Get a random image from a folder in the MEDIA folder. (This droplet is bundled with the droplets module.)
- Replace Character
Use this droplet to replace one or more characters when the page is rendered. This could be used f.ex. as an easy way to add line breaks to menu titles.
- Section Picker
Display the content of any section on another page.
- Section Picker 1.4
The default Section Picker Droplet from WBCE 1.4 which uses new methods to fetch the content.
Display multiple identified WYSIWYG Sections
Modification of the ShowSection Droplet,
ShowMultipleWYSIWYG will display the WYSIWYG sections that you identify
Randomly display a WYSIWYG section from a given list
Creates a "Table of Contents" from Headings in a page (h1-h6); also adds "Back to top"-links before every heading.
See also: https://forum.wbce.org/viewtopic.php?id=5194
- Edit This Page
Add a direct link to the edit view of the current page to its frontend view.
- LoginBox (fixed)
Use: [ [LoginBox?redirect=url] ], whilst url has to be the complete path, e.g http://www.example.com/pages/target.php. You can also use wblink, but have to add a dummy parameter (otherwiese there will be problems with the brackets), e.g. [ [loginbox?redirect=[wblink 42]&foo=bar] ] (remove blanks!)
Displays the last modification time of the current page. (This droplet is bundled with the droplets module.)
Removes the <p> ... </p> around content which was generated by a droplet. (This problem occurs when the droplet is called in a wysiwyg section.) Note that this droplet possibly removes wanted p tags nevertheless, e.g. when using the Font-Awesome-Droplet.
Add this droplet to your template just above the </body> tag.
Shows a random or the latest image from a folder tree
See also: http://wbaddons.webbird.de/?do=item&item=10
Use: Text2png?text=(text, Mandatory)&ttffile=(fontfile.ttf, Mandatory)&fontcolor=(fontcolor, Optional)&fontsize=(fontsize, Optional)
text = Text to convert into truecolor png with transparent background.
ttffile = True Type Font file (.ttf or .otf), must be in the folder media/fonts/ but you can change this in the code.
fontcolor = Color in 6 digit HEX format, "000000" (black) by default.
fontsize = Size of the font in points (if gd2 is used, otherwise in pixels), 12 by default.
This droplet has a rudimentary but efficient caching system but it never deletes any file, if you want you can delete all the png files starting with the name "text2png_" in your temp folder, droplet will recreate the needed files.
This droplet was created by forum member "quinto". Thanks for sharing!
- Users In Group
Lists all members of a given group with their display name, email address and date of registration. Please note: The date of registration is available since WBCE 1.4, if the users registered in an older version and/or the website is not running with WBCE 1.4+, the date will be displayed as "01.01.1970".
Also you should make sure that the users gave their consent to publish their personal data (GDPR)!