Announcement

Collapse
No announcement yet.

conditional block question

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

    conditional block question

    hi guys,

    got a minor problem... i have a bit of code that i only want displayed on a certain section page, so into the section layout i put the necessary html (which displays perfectly) but then when i put a block around it, it disappears which says to me that (even though it makes no sense) my block is returning false...

    the block is:

    SectionPageName == "satnav.html"

    this IS the name of the page but the html within the block isnt showing...

    so i tried:

    SectionName == "Sat Nav"

    and also:

    SectionPageTitle == "Sat Nav Related Stuff"

    neither of which worked...

    any ideas this has me stumped

    #2
    Check it by displaying the variable you're testing against.

    E.g. [<actinic:variable name="SectionName" />]

    That way you can see what gets generated between the [ and ].

    Look at the source of the page to double-check.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      When entering the block, just checking that you are adding the variable SectionName, and not just typing it S-e-c-t....

      Comment


        #4
        You may get better control in creating a user defined variable, setting the specific value at the section you need to display and then creating the test. This will then allow you to use a different test and display different things depending on what is declared in the section properties for the user variable .. just thinking ahead a little from what you need at the moment.


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment

        Working...
        X