Announcement

Collapse
No announcement yet.

blockif blockelse /block

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    blockif blockelse /block

    Hi,

    Does anyone know how can I implement an "else" for the blockif. I'm putting some relevent page links in my right sidebar, depending on the current page. For pages without a page relevent link I want to put in a default link.

    How can I do this without specifically testing every default page with a blockif? I'm using V8

    Gerry.

    #2
    There is no 'else' statement (it's on the wish list).

    there are two options that come to mind that may perhaps help though:
    1. If you know php you could perhaps do something along those lines - in fact I think Norman posted something not too long ago.
    2. Create a section scoped variable and place that in the sidebar with a blockif to only display the variable if not empty. You can then define the 'relevant link' you require in the variable per section.

    EDIT: Per pont 1. - this link may help to simplify the blockif:
    http://community.actinic.com/showthread.php?t=34315

    and this:
    http://community.actinic.com/showthread.php?t=30805

    Comment


      #3
      Originally posted by drounding
      2. Create a section scoped variable and place that in the sidebar with a blockif to only display the variable if not empty. You can then define the 'relevant link' you require in the variable per section.
      Thanks Duncan, that worked a treat.
      Gerry.

      Comment

      Working...
      X