forked from Typesetter/Typesetter
-
Notifications
You must be signed in to change notification settings - Fork 0
Gadgets
gtbu edited this page Jun 26, 2024
·
8 revisions
Gadgets are content elements created by the CMS or by addons. They can be added to the layout via Layout Manager or to the content via File Include sections.
Gadgets can also be called programmatically from template.php via (need revision with options)
Variable : $GP_GETALLGADGETS ; boolean : Normally used in a theme’s settings.php file to define if all available Gadgets should be loaded by default.
< ?php
<? gpOutput::Get(‘Gadget’,‘Gadget_Name’);?>
<? gpOutput::Get(‘Gadget’,‘Gadget_Name’);?>
The Gadget – Name stands in the addon.ini of the plugin. Gadgets are also used in themes like bootstrap4.
== CMS Built-in Gadgets ==
- Contact
- Search
- Admin Link
- Login Link
Evtl. it is necessary to put the call at a specific position of the code (like page-button in the footer)