We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10357
    • 573 Posts
    Hi,

    I am using maxigallery with the smoothgallery embed type. Everything works great expect I do not want to use the description placeholder. However, when I remove <p>[+maxigallery.picture.descr:htmlent+]</p> from my template the gallery disappears.

    here is my galleryPictureTpl:

    <div class="imageElement">   
    <h3>[+maxigallery.picture.title:htmlent+]</h3>
    
     <img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="full" alt="[+maxigallery.picture.title:htmlent+]" />
    </div> 
      • 7923
      • 4,213 Posts
      Try:
      <div class="imageElement">
      <h3>[+maxigallery.picture.title:htmlent+]</h3>
      <p></p>
      <a href="[+maxigallery.picture_link_url+]" title="[+maxigallery.strings.click_to_zoom+]" class="open"></a>
      <img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="full" />
      <img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" />
      </div>
      



        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 10357
        • 573 Posts
        Hi,

        many thanks for your help doze. Your template has the same problem mine does in that it generate lots of empty p tags. The code below works for me (I just do not fill out the description) but I hate unnecessary code bloat.


        <div class="imageElement">   
        <h3>[+maxigallery.picture.title:htmlent+]</h3>
        <p>[+maxigallery.picture.descr:htmlent+]</p>
        <img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="full" alt="[+maxigallery.picture.title:htmlent+]" />
        </div> 
          • 7923
          • 4,213 Posts
          Yes, SmoothGallery js-script expects that all the tags are there.. you can also use <p>&nbsp;</p>


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 10357
            • 573 Posts
            so I will probably have to take a look at the smoothgallery css/js.. thanks for the tip, that got rid of the pesky validator warnings.