Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [Anat] PageBuilder for Dummies: Edit Log

Here is the list of edits for this post
Re: [Anat] PageBuilder for Dummies
CONDITIONAL PAGE BUILDING IN PAGEBUILDER

or how to build pages depending on variables and database fields.

Anat;

You are correct, pick link type in Yogi's Pagebuilder, and get the condition right.

The conditional language documentation is hard to find
Possibilities are:

a eq b or a = '1' or a = 1, etc with or without quotes.
I have posted some that will help you below.

I looked up some examples I use.

Figuring these out took quite a while. Use them well!

Page Condition BigPic <> '' Page Condition GameInfo = Yes
Page Condition ItemType = article

Then in link.html, you set the link to format and LINK (different directory) differently depending on ItemType, using IF statements <%If ItemType = article %>..article link type here.. <%else%> nornal link type here <%Endif%>.
That's the BIG trick;)

By the way, the help notes say...

" You can enter a simple page condition SQL style (this is used for static building, as well as for dynamic displaying). This could e.g. be isPremium = Yes if you want to build/display only pages for links which have isPremium set to Yes). "

Last edited by:

webslicer: Feb 9, 2004, 2:24 PM

Edit Log: