« Enhancement: Code Snippits using LotusScript can now access all fields in Blog Configuration | Main| New Feature: Allow side blocks to contain inline @formulas »

Enhancement: Added the possibility to have a sideblock tied to certain permalink ids

Tags: Side block Enhancement

The idea behind this is that I can switch sideblocks based not only on the existing document-type (Homepage, blog, static page etc), but also whether the current entry is in the list of allowed permalinks. It looks like this;

A picture named M2

The side block above with only show when the static page with the permalink "ii2ln" is present. This makes it easy to to have similar side blocks, but with entry-related  content.

This is implemented by adding an extra row on the form CONFIG - Side Block | content_SideBlock, containing a multivalue text field BlockPermalinkFilter  like this;

A picture named M2

At the moment there isn't any lookup to valid permalink pages or blog entries, so the user has to copy' paste here.

Additionally the script library RenderEngine.Blog's function RenderEngineSideBlocks  has gotten this extra code
;

A picture named M3

This code basically checks for the existence of the field, and if present, checks whether it contains the current permalink key or not. If it isn't present, then don't render the side block!

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