Announcement

Collapse
No announcement yet.

Error in condition (Variable 'SectionNumber' is used out of context). (5 times)

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

    Error in condition (Variable 'SectionNumber' is used out of context). (5 times)

    Hi

    I am trying to impliment the "Highlighting the 'Current' Section in the Section List" from the advanced user guide B 8.13, but am getting the error when I try to upload:

    Error in condition (Variable 'SectionNumber' is used out of context). (5 times)

    My Layout Code - Section NameOnly Section Link is:

    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsSectionIncludedInSiteMap%22%20%2f%3e" >
    <a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" class="product_section">
    <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionNumber%22%20%2f%3e%20%3d%3d%20%3cactinic%3avariable%20name%3d%22MainSection%3a%3aSectionNumber%22%20%2f%3e"><B></actinic:block><Actinic:Variable Name="SectionName"/><actinic:block if="%3cactinic%3avariable%20name%3d%22SectionNumber%22%20%2f%3e%20%3d%3d%20%3cactinic%3avariable%20name%3d%22MainSection%3a%3aSectionNumber%22%20%2f%3e"></B></actinic:block>
    <!-- KW <actinic:variable name="SectionName" /> -->
    </a>
    </actinic:block>

    I'm not really sure what the 'context' of the variable is, I thought the 'Use Parent' would mean it was a valid variable throughout the site?

    Any ideas?

    Thanks
    Kev

    [Edit] Interestingly I thought I would do it a second time to upload the site anyway (without making any changes) and the error didn't happen! Maybe it's solved?

    #2
    It'll be back.

    It's to do with the sitemap not having a setting for sectionnumber. You can add another block if (PageType != "Site Map") to stop it happening.

    Comment


      #3
      Hi

      Thanks for the sugestion, but making that change gives me 85 coding errors!

      I changed the code to:

      <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionNumber%22%20%2f%3e%20%3d%3d%20%3cactinic%3avariable%20name%3d%22MainSection%3a%3aSectionNumber%22%20%2f%3e%20AND%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Site%20Map%22" ><B></actinic:block><Actinic:Variable Name="SectionName"/><actinic:block if="%3cactinic%3avariable%20name%3d%22SectionNumber%22%20%2f%3e%20%3d%3d%20%3cactinic%3avariable%20name%3d%22MainSection%3a%3aSectionNumber%22%20%2f%3e%20AND%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Site%20Map%22" ></B></actinic:block>

      any ideas?

      Thanks
      Kev

      Comment


        #4
        Have you created the varialbe called 'SectionNumber'? You need this in order to complete this exercise.

        Make it settable at 'Section' level and then enter a different value for it for each top level section in your store.

        Comment


          #5
          Try this. On the variable details for SectionNumber, check the "Site" box. Then the variable will have a value for the sitemap etc. and therefore will not be out of context.

          Comment


            #6
            Out of context errors

            I've been having very similar errors myself (different variable but same error) and I discovered a relationship with a change I made in the Advanced Page Configuration. I've changed it back to the default settings for now and the problem is solved. In case anyone else is having these problems, it might be worth checking your settings in this area.

            Cheers.

            Angi
            OXLink Web Design (Oxford)
            Actinic developers since version 3
            01865 361696

            Comment

            Working...
            X