User Tools

Site Tools


doc:techfaq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
doc:techfaq [2020/01/05 12:58] arviddoc:techfaq [2020/01/05 19:07] – [How do I add a new widget?] arvid
Line 46: Line 46:
  
 ==== How do I add a new widget? ==== ==== How do I add a new widget? ====
-Add the corresponding plugin both to the plugin list and to the widget list in the section and at the position you want it to go.+{{ :doc:widgetconfig_screenshot.png?direct&300|Screenshot of widget configuration in the admin area. Click to view in full size!}}Add the corresponding plugin both to the plugin list and to the widget list in the section and at the position you want it to go.
  
 Widgets are organized in **groups** or **bars**; every bar can contain any number of widgets. These bars are then displayed on the theme using the special tag ''{widget pos=BAR}'' where ''BAR'' is the name of the bar. Widgets are organized in **groups** or **bars**; every bar can contain any number of widgets. These bars are then displayed on the theme using the special tag ''{widget pos=BAR}'' where ''BAR'' is the name of the bar.
Line 52: Line 52:
 Generally in themes you have one ore more predefined widget bars. Usually you have at least the ''right'' bar; a lot of themes display both the contents of the left and of the right bar even if they actually have one single column of widgets (they show them together, one group after the other). Generally in themes you have one ore more predefined widget bars. Usually you have at least the ''right'' bar; a lot of themes display both the contents of the left and of the right bar even if they actually have one single column of widgets (they show them together, one group after the other).
  
-To add a new widget you add its plugin name to the plugin list in the paneland the choose one of the groups and add the plugin name to the list as well. As you saw in the blockparser example, some widget may expect you to provide some parameters as well. +To add a widget, just drag'n drop it from the right to the bar you wish it to appearSee screenshot on the right!
 ==== I have enabled a widget in the plugin panel but I don't see anywhere in my sidebars ==== ==== I have enabled a widget in the plugin panel but I don't see anywhere in my sidebars ====
 As we said, Widgets are special plugins providing a widget function; by the way FlatPress does not know where you want it to appear, so, once a plugin widget is loaded, you should enable it in the widget panel as well (see the previous question). As we said, Widgets are special plugins providing a widget function; by the way FlatPress does not know where you want it to appear, so, once a plugin widget is loaded, you should enable it in the widget panel as well (see the previous question).
doc/techfaq.txt · Last modified: 2024/04/07 13:03 by arvid

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki