« Enhancement: Added the possibility to have a sideblock tied to certain permalink ids | Main| New Feature: Category Header Static Page »

New Feature: Allow side blocks to contain inline @formulas

Tags: Side block New Features

Existing version of Blogsphere allow for HTML and inline HTML between double-square brackets. I enhanced this to allow any kind of @formulas between $(Formula) and $(/Formula) tags. It may look like this;

A picture named M2
This code is executed when the side block is generated, and the result may look like this;

A picture named M3

This allows for pretty dynamic side blocks - especially when combined with the
Enhancement: Added the possibility to have a sideblock tied to certain permalink ids enhancement.

This can of course be further enhanced to allow other inline code to execute, such as LotusScript via the Execute function (perhaps the tags should be $(LotusScript) and $(/LotusScript)?!)

This new feature involved the following changes. First I added the ReplaceFormulas-function to the script library RenderEngine.Blog. The ReplaceFormulas function look like this;

A picture named M2

Then I use this function in the function RenderEngineSideBlocks, like this;

A picture named M3
You can see a demonstration of the inline formulas support on this page!

Note; I initially wanted to have inline formula support in blog-entries and static page content itself., but I haven't figured out yet how to best implement this.

Calendar

Search Site

Tag Cloud

Domino BlogSphere
Version 3.0.2

A Code Snippit

The Home URL of this db is http://dev.blogsphere.net/blogsphere/bsphere3.nsf