Announcement

Collapse
No announcement yet.

Default Section Image - BUG?

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

    #16
    doesn't it work if you tick the "allow empty value" box in the DefaultSectionImage variable then?
    So you can leave the entry for default section image, in the Site Options, blank?
    Tracey

    Comment


      #17
      Nope tried that too, it's weird i tell ya, had me going bonkers for a while.

      Comment


        #18
        Instead of the AND in the second condition, try it with an OR

        Comment


          #19
          I don't know what that means lol, did i do something, stupid?
          Pls don't call me stupid...

          Comment


            #20
            ok..right well it works for me

            If I make the DefaultSectionImage so I can leave it empty. Leave the setting for the default section image, in the site options, BLANK...and leave the section image blank.
            Place a blockif that I posted before around the sectionimage...and I get no image, no blank space, no default image (although I did have to clear the 2 entries in the defaultsectionimage too..the top level and something else..can't think off hand)

            but anyway...it works for me..online and offline

            so...you broken yours then, Lee?
            Tracey

            Comment


              #21
              Put a border on the 2 areas and you will see, remember this has to cater for when you have an image and when you don't have an image. One solution for both in other words.

              Comment


                #22
                honestly, it's working for me
                it shows the image when I reference one and nothing, no space or anything, when I don't.
                I'll pm you a link so you can see.

                actually, on reflection, it is rather flakey though

                I added subsections and, even though NO image was referenced anywhere, it showed the default (well, the parent) image
                However, I went into the DefaultSectionImage variable (to check it didn't have a "use parent" option ticked or something) came out of it without changing anything and now the section image has gone again.
                So, it's working..but there's something a bit flakey somewhere
                Tracey

                Comment


                  #23
                  Originally posted by cdicken
                  Instead of the AND in the second condition, try it with an OR
                  It's the AND that makes it work, the double condition is the solution not the problem. If i change that to OR then it fails, likewise if either of those conditions are removed it fails on either the preview or online (dependent on which one you remove). What I don't undersand is how actinic previews one thing and then uploads something different.

                  This code below fails if you remove one of the conditions on the second row:

                  Code:
                  <table cellpadding="2" cellspacing="0" border="1" width="136" bordercolor="<actinic:variable name="Palette2" />">
                  	<tr>
                        <td align="center" bgcolor="<actinic:variable name="CheckoutEM" />">
                           <strong><a style="color: <actinic:variable name="Palette1" />;" 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>" target="_self"><actinic:variable name='SectionName'/></a></strong>
                        </td>
                     </tr>
                  	<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionImageFileName%22%20%2f%3e%20%21%3d%20%22%2e%2e%2ftheme%5fsection%5fimage%2egif%22%20AND%20%0d%3cactinic%3avariable%20name%3d%22SectionImageFileName%22%20%2f%3e%20%21%3d%20%22theme%5fsection%5fimage%2egif%22" >
                  	<tr>
                        <td align="center">
                           <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>" target="_self">
                           <img alt="<actinic:variable name="SectionName" encoding="strip"/>" src="<actinic:variable Name="SectionImageFileName"/>" border="0" /></a><br/>
                  			<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionDescription%22%20%2f%3e%20%21%3d%20%22%22">
                  			<span class="highlight"><actinic:variable name="SectionDescription" /></span>
                  			</actinic:block>
                  		</td>
                     </tr>
                     </actinic:block>
                  </table>

                  Comment


                    #24
                    Lee - you are as mental as ever


                    Bikster
                    SellerDeck Designs and Responsive Themes

                    Comment


                      #25
                      You will probably always need the 2 conditions as the online path is in the same directory but the offline hosts in the PreviewHTML and points to the image - typically a level beneath or at the same level in another folder.

                      You could cheat the fecker and place a copy of the image in the PreviewHTML folder


                      Bikster
                      SellerDeck Designs and Responsive Themes

                      Comment

                      Working...
                      X