Announcement

Collapse
No announcement yet.

UserVariable Condition Issue

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

    UserVariable Condition Issue

    I am experiencing issues with a UserVariable set at the section level which is used in a Block If condition around a layout in the outer layout (a simple test to see if the UserVariable is present in the section). Eg:

    in the outer layout :

    block if [LAYOUT1] /block
    block if [LAYOUT2] /block
    block if [LAYOUT3] /block

    etc.

    The condition for each block changes and just tests for the UserVariable eg:

    UserVariable == 1
    UserVariable == 2
    UserVariable == 3

    This works perfectly well and achieves the desired page layout (hence the slightly convoluted approach).

    What I am experiencing is a coding error (red exclamation) which always opens as the same condition for UserVariable == 3. Deleting the text and re-entering exactly as before resolves until the next time Actinic opens.

    Why on earth should it be the same condition and re-entering the text solve?

    MultiSite v8.5 with client on same version and also experiencing the same phenomena.


    Bikster
    SellerDeck Designs and Responsive Themes

    #2
    I occasionally see spurious PHP coding errors when opening a site for the first time in Design View. Switching to Content View and back often cures it.

    One area that amost guarantees this erronous error is to set some PHP variables in the Start of List area of a List Layout. If I then try to use these variables within the list, they're not always set properly.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Hi Jont,

      I've set up my software what you've suggested and I'm not getting any coding errors (I've tried switching sites and uploading but still nothing). Which layout have you put your conditions in? Mine are in the 'Product List' layout.
      ********************
      Tracey
      SellerDeck

      Comment


        #4
        Hi Tracey,

        the new variable is set as follows:

        Library Group : section
        Place of setting : section
        Tab name : properties
        Type : text

        The variable is then defined against the section layout accordingly


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          Hi Jont,

          Thanks for that, but in which layout have you put:

          block if [LAYOUT1] /block
          block if [LAYOUT2] /block
          block if [LAYOUT3] /block
          ********************
          Tracey
          SellerDeck

          Comment


            #6
            Originally posted by jont
            in the outer layout :

            block if [LAYOUT1] /block
            block if [LAYOUT2] /block
            block if [LAYOUT3] /block

            Sorry - it is the outer layout.

            The layouts are actually basic section list layouts which are using the condition to test a variable and therefore break the sub-sections down into groupings for better navigation on the page

            Eg:

            Group 1 (block test variable = 1)
            Sub-Section A (variable = 1)
            Sub-Section D (variable = 1)

            Group 2 (block test variable = 3)
            Sub-Section C (variable = 3)
            Sub-Section F (variable = 3)


            Bikster
            SellerDeck Designs and Responsive Themes

            Comment


              #7
              No its not - its the "Section Page with Section Name at Top" NOT outer layout


              Bikster
              SellerDeck Designs and Responsive Themes

              Comment


                #8
                Hi Jont,

                Sorry but I still can't recreate the coding error. I guess we need your snapshot (probably only a partial design snapshot) to be able to figure out what is going on. Please raise a support query here.
                ********************
                Tracey
                SellerDeck

                Comment

                Working...
                X