Announcement

Collapse
No announcement yet.

Pagetype blockif not working

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

    Pagetype blockif not working

    I am working on a v10 client site and I cannot get pagetype == 'section' to work in a blockif.
    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22section%22" >section</actinic:block>
    It's a while ago and I may well have forgotton something but why is this variable not working?

    If I put this in the outer layout it executes correctly:
    Code:
    <h1><actinic:variable name="PageType" /></h1>
    So on a section page it will display the word 'Section'

    Do this and nothing displays on a section page or anywhere else for that matter.:

    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27section%27">
        <h1><actinic:variable name="PageType" /></h1>
    </actinic:block>
    Thank you!
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    Case is important. Use Section not section.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      I thought I had tried both. I will try again. Single quotes or double? Thank you!
      Jonathan Chappell
      Website Designer
      SellerDeck Website Designer
      Actinic to SellerDeck upgrades
      Graphicz Limited - www.graphicz.co.uk

      Comment


        #4
        I use double quotes.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Grand, thank you Norman. I should know all this by now!

          J
          Jonathan Chappell
          Website Designer
          SellerDeck Website Designer
          Actinic to SellerDeck upgrades
          Graphicz Limited - www.graphicz.co.uk

          Comment

          Working...
          X