We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11678
    • 160 Posts
    Serban:
    Do you have a link to your site so I could see the outcome?
    Thanks,
    HalD
      "Today’s headlines are nothing more than whispers of history"
      • 26696
      • 23 Posts
      It’s a site for a small Romanian real estate agency.The link is http://bursaimobiliaraiasi.ro/
      Unfortunately, the client didn’t put any pictures yet, but just the design is made so every entry can have 3 pictures.
        I am a freelance web designer. Find out more about me on byskyedition.com
        • 27330
        • 884 Posts
        @serban how did you override Maxigallery links and code?
        I want to use only the image from maxigallery and to use it in ditto tpl like that
        <div class="ditto_product_image"><a href="[~[+id+]~]">[!MaxiGallery? &view_gallery=`[+id+]` &limit=`1` &max_pic_size=`120`!] </a></div>


        So I get the image fine, but clicking on it adds Maxigallery parameters to the url like that and I don’t want that extra code in there.

        http://domain.com/one-great-model.php?pic=110&from_id=19

          • 27330
          • 884 Posts
          Ok the answer is so simple Im ashamed I didn’t think of it before smiley it’s called custom template.

          If anyone wants to do what I’ve done up there with ditto here is my new ditto call, note that I’m using the coulmns display of ditto and that the picture you’ll see is the first one on the gallery:

          Ditto template
          <li class="ditto_products" id="ditto_item_[+id+]">
          <h4 class="ditto_pageTitle"><a href="[~[+id+]~]">[+pagetitle+]</a></h4>  
          <div class="ditto_product_image"><a href="[~[+id+]~]">[!MaxiGallery? &view_gallery=`[+id+]` &limit=`1` &max_pic_size=`120` &galleryPictureTpl=`mg_products` &galleryOuterTpl=`mg_products_outer` !] </a></div>  </li>


          &galleryPictureTpl chunck
          <img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" alt="[+maxigallery.picture.title:htmlent+]" />


          &galleryOuterTpl chunck
          <div class="thumbscontainer">
          [+maxigallery.pictures+]
          </div>


          Hope this helps somebody out there.