Posts Tagged ‘sidebars’

Create multi instances widget

datePosted on 12:39, July 6th, 2008 by Millan

Since I have started developing my ‘GD Pages Navigator’ widget plugin, I wanted to upgrade it so it can support more then one instance on a page. Unfortunatly there are limited resources available for that task, and almost no info about it in the official documentation. There are plugins that use different methods of achiving this, but best method is the one used by plugins build into Wordpress.

So, my starting point was ‘widget.php’ file where this default widgets are located. They also provided a short example of multi instance widget at the end of this file. This example in is good, but it has few errors (copy-paste errors mostly). This function is in the sample code class

I have decided to walk you throught the process of creating a widget that will support more then one instance. This example will show you how to work with different types of settings and it will provide you with some practicle code snippets you can use in your own plugins. Tutorial will be based on my ‘GD Pages Navigator’ plugin. This widget supports multiple instances from the version 3.0.0.
Read the rest of this entry »

GD Pages Navigator 3.0.0

datePosted on 21:22, July 4th, 2008 by Millan
gd-pages-navigator-multi.png

New major update for GD Pages Navigator is uploaded. This one improves widget control interface, fixing Internet Explorer visual problems. And the most important improvement is support for multiple instances of the widget. Now you can have different set pages navigation in one or more sidebars.

User Guide for the plugin is also updated to include all changes made from previous versions.

If you have any problems with the widget, or you have suggestions for new features, feel free to contact me, or leave the comment.

12Previous