« Bugfix: The agent (WQO - Load Static Page) refers to Download settings instead of Static Page settings | Main| Small bugfix: Added working default value for Code Snippit »

New feature: Ability to override page layout per page basis

Tags: New Features Static Page

This new feature enable you to override the default page layout on a static page

For example, the Page Template defines that a static document should have 2 Column Right layout, like this;

A picture named M2

If we need to have a single static page using other layouts, such as One Column, this can be achieved by specifying the "Override Template Layout" settings in the static page's Advanced tab, like this;

A picture named M3

Two design elements has been changed here. First the form CONTENT - Static Page | content_StaticPage, to which I have added the fields  EntryLayoutOverride  and EntryLayout,  like this;

A picture named M4

Finally I have changed the agent (WQO - Load Static Page)|Agnt_LoadStaticPage to check for existance of EntryLayoutOverride. If present, I checks all the way and retrieves the override layout code, which is then used instead of raw usage of templateDoc.Template_SE_Layout(0) . Below you see the new code;

A picture named M5

Perhaps this should be valid for other entries as well? What do you think?

By the way, check out the example in the Sample documents to see the difference.

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

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