Announcement

Collapse
No announcement yet.

Default Section Image - BUG?

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

    Default Section Image - BUG?

    If i don't want the dot (default section image) to show on a section IF i do not have a section image defined, i can create a condition checking to see the image filename and removing that part of the code if applicable i.e. the row including the image code is only shown if there is an image defined.

    It took some time to work out how to do it, but it works great in the preview screen, no dot if no image defined and shows an image if i put one in - great at last!

    NOT! when you upload, it puts the dot back in! HUH, the preview shows it removed, but an upload puts it back in. Nowt to do with cached pages or alike as i can add sections and see the new page etc.

    The preview page shows something totally different to the live page!

    Anyone ever cracked this? i want a global layout not multiple section link layouts to manage. Normal conditions on empty field checking etc. just don't seem to work on this little puppy, it's almost like it is inbuilt into software and uncontrollable. I've also adjusted the variable to allow empty, then emptied the field in site options - all to no avail.

    #2
    LOL, this is funny, think i've cracked but something is clearly not right.

    If i add this condition around the row:

    Code:
    <actinic:variable name="SectionImageFileName" /> != "theme_section_image.gif"
    The dot shows in the preview screen, but doesn't online.

    However, if i put this condition around it:

    Code:
    <actinic:variable name="SectionImageFileName" /> != "../theme_section_image.gif" AND 
    <actinic:variable name="SectionImageFileName" /> != "theme_section_image.gif"
    Then it does not show either in the preview screen or online.

    Gotta be something to do with online versus offline image references i presume, so both scenarios have to be catered for. If you stumble upon this thread and wish to do this, remember the blockif needs wrapping around either the div or the <tr> containing the image.

    Comment


      #3
      I can see why Bumpsy talks to herself now, quite therapeutic.

      Comment


        #4
        Thanks for that Lee, i was playing with this only last night and could not get it to work.

        Cheers!

        Comment


          #5
          My pleasure Lee, HTH.

          Comment


            #6
            Have you flipped Lee?

            Comment


              #7
              Yes.

              Comment


                #8
                The hosting on this forum is going downhill IMO, it's either dog slow, times out or gives you busy messages half the time.

                Comment


                  #9
                  Hey Lee i i get all the best answers from Darren, he always answer me, funny it is almost like he can read my mind

                  Comment


                    #10
                    Oy spammer...

                    why don't you simply change the default section image to a transparent gif?

                    Comment


                      #11
                      Cos i don't want the empty row Croccy with nothing in it.

                      Comment


                        #12
                        .... ....

                        ////....\\\\

                        Pooof

                        Comment


                          #13
                          can't you leave it with no default image? (ie default image is empty)

                          and use the blockif
                          Code:
                          <actinic:variable name="SectionImageFileName" />  != ""
                          around the section image instead?

                          and I don't talk to myself
                          I know you're all listening really
                          Tracey

                          Comment


                            #14
                            Doesn't work Bumpsy because of the way (i presume) that when we do not include an image it gives us the default without asking for it. For sure i may have missed a particular condition attempt, but i literally tried at least 15 different combos.

                            Comment


                              #15
                              Originally posted by pinbrook
                              .... ....

                              ////....\\\\

                              Pooof
                              I don't know what that means lol, did i do something stupid?
                              There is padding applied to the areas so even if no image is applied i will get an empty cell. Whether i get an empty cell with no default image or an empty cell with nothing in it, neither are wanted etc. Remember there are some where i have images and want them to show, so needs to cater for both possibilities all in the one layout.

                              Comment

                              Working...
                              X