Skip to main content

Widgets

Homepage widgets are mini applications written in HTML, with JavaScript, and PHP. They allow the extension of Jadu Central to provide additional functionality and easy integration with third party applications.

note

Some widgets will have no checkbox in the list, as they are standard widgets provided by the system.

You can adjust the visibility settings of these widgets to prevent your authors using them.

Managing widgets

Widgets are managed via the Settings menu.

If your account has permission to access widgets, you navigate to their management area by the following:

  1. Click the Settings icon in the left navigation bar. The Settings menu will open.
  2. Click the Widget manager link in the first group of links. A list of widgets will now be shown, with links to create new widgets if your account has the appropriate access permissions.

Widget fields

Widget form interface

FieldNotesRequired?
TitleThe name of the widget.
DescriptionA short description of the widget. Limited to 200 characters. Can contain new lines.
Default WidthThe default width to apply when a widget is first dragged into a row.
Requires CategoriesWhether to show the Assign categories button in the widget settings tab.
Signed in users onlyWhether to show the widget's content to only users who have authenticated with the site.
ScopeWhich sites on this environment this widget is available to.
VisibleWhether to show the widget in this site's homepage designer list of widgets.
Front-endThe content of public.php. Used as the widget preview on Photon sites.
Front-end JavaScriptThe content of public.js
SettingsThe content of secure.php
Settings JavaScriptThe content of secure.js

What to include in a widget zip archive

FilePurpose
public.phpthe file that contains the HTML or PHP you want your website visitors to see
public.jsthe file that contains the JavaScript used in public.php. This file is optional. The javascript in this file is combined and published dynamically as widget.js. Dependent on your site's implementation, widget.js maybe included only on homepages or on all pages of the site.
secure.phpthe file that contains the HTML or PHP used to specify any settings when using the homepages designer. This file is optional.
secure.jsthe file that contains the JavaScript used in secure.php. This file is optional.