Topic Closed

There is not much information in the documentation on how to put a plugin/gadget into a template. I see a method called gpOutput::GetAllGadgets() but it does not do anything when I try it. Need more info on how to create and access our own plugins/gadgets.

Jim

9 years ago#99

Josh S.
2K Posts
266K Downloads
16 Themes
18 Plugins

The documentation for plugins and gadgets definitely needs some work...

Essentially, gadgets are only added to the software when a plugin that includes a gadget is installed. A good example of this is the Simple Search plugin. Within the Simple Search folder you'll see a file named Addon.ini, and within that file a definition for the gadget. Here's the portion of the Addon.ini that defines the gadget

[Gadget:Simple_Search] script = 'SimpleSearchGadget.php'

Once the plugin is installed, the gadget will automatically be added to the system and ouput in your theme were you place gpOutput::GetAllGadgets();

Are you looking at integrating some custom gadgets?

9 years ago#102

I guess I'm a bit confused because I am thinking of plugins in the contect of other systems I have worked with like cmsms, Joomla etc. where plugins are something that you can imbed into the content with the content editor by simply inserting code such as {{myplugin}} where it might be a snippet for lets say a embeded google map. I also am not clear when you say a plugin which has a gadget in it. I'll have to take a look at the Simple Search to see what is going on there.

Jim

9 years ago#104

Topic Closed

 

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register