BlocksG2

From GeeklogWiki
Revision as of 19:13, 14 June 2005 by Tony (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

The Block Infrastructure

Unlike with Geeklog 1.3.x, blocks are nothing more than a plugin under Geeklog 2.

Using Blocks In Templates

The most exciting advancement in Geeklog 2 is that blocks can be configured to show up in nearly any part of a Geeklog 2 template. In fact, blocks can provide windows into installed Geeklog 2 plugins (very akin to Portlets in the Java JetSpeed API). Through the use of Flexy and the existing abstract views in Geeklog 2, we have provided a slick method called getBlock(). All that needs to be given to it is the logical name of the plugin. From there the Geeklog 2 kernel will render the requested block.