How to integrate a widget in Joomla
First create your widget in the ReviewForest dashboard and copy its code, as described in Install a ReviewForest widget. In Joomla, the code goes into a Custom module. The steps are for Joomla 4, 5 and 6 with the standard template Cassiopeia.
Before you start: switch off the editor
Section titled “Before you start: switch off the editor”Joomla’s standard editor, TinyMCE, deletes the first line of the widget code when you save, because it removes scripts. Joomla’s documentation recommends switching the editor off while you add code like this:
-
Go to Users → Manage and open your own user account.
-
On the Basic Settings tab, choose the None option in the Editor list and click Save & Close.
Do this as a Super User. For other user groups, Joomla also removes scripts from module content unless their text filter allows it.
Create the module
Section titled “Create the module”-
Go to Content → Site Modules, click New and choose Custom.
-
Enter a title, for example “ReviewForest”, and paste the widget code into the content field.
-
Choose the Position:
- Floating badge: debug. Cassiopeia outputs this position right at the end of every page.
- All other widgets: the position where the widget should appear, for example main-bottom.
-
On the Menu Assignment tab, choose On all pages for a floating badge. For the other widgets, select the pages where they should appear.
-
Click Save & Close and open your website to check.
Afterwards, set your editor back to TinyMCE. If you edit the module again later, switch the editor off first, or TinyMCE removes the script when you save.