Announcement

Collapse
No announcement yet.

Error in Condition 'SectionName'

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

    Error in Condition 'SectionName'

    Hi, just wondering if anybody can help as I am getting the following error

    Error in condition. The 'SectionName' variable has been placed within the Works Best with Executive layout, but it won't work there
    Regards
    Sally

    Fashion Jewellery Wholesale - Glitzy Jewels

    #2
    Hi,

    Have you made any manual adjustments to this layout?

    The type of error you are getting would suggest that the SectionName variable has been placed at a level where is can't be accessed.

    From memory I think you would have to wrap a block statement around the variable that initiates the SectionList but you would have to do some testing to see how and what it outputs.

    If you have not made any intention changes to this layout perhaps go Design, Library, Layouts, Web Page Outer Layout and right click on the appropriate layout and select "Revert to Factory Settings".
    Dave

    Comment


      #3
      If you are using sectionname in the outer layout you can wrap it in a blockif to stop an error appearing, using page type Section.
      Peblaco

      Comment


        #4
        What Peblaco has said is far more sensible. Forcing section data on a non section page would be inadvisable and could yield undesirable results.

        Simply allowing the variable when the page type is correct is the way forward although if you have additional code to go with the SectionName you might wish to suppress that within the blockif also.
        Dave

        Comment


          #5
          Thanks Dave and Peblaco,

          I have made the change suggested and seems to work with no problems. Strange though as we have two other sites using the same theme and had no problem using SectionName. As far as I am aware we have never changed the outer layer.
          Regards
          Sally

          Fashion Jewellery Wholesale - Glitzy Jewels

          Comment


            #6
            I'm getting into the same trouble whilst doing a little work on our extended info popup pages. Do these pages not have a PageType as when I try and display it, it appears empty?
            Regards
            Sally

            Fashion Jewellery Wholesale - Glitzy Jewels

            Comment


              #7
              Extended Info pages have a PageType that is null. So you can test for them by

              PageType == ""
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Thanks Norman.
                Regards
                Sally

                Fashion Jewellery Wholesale - Glitzy Jewels

                Comment

                Working...
                X