We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27421
    • 67 Posts
    No bennyb. I don’t pagination for what I’m doing. I just wish I could figure out how to pass the pagetitle and my product price tv to ditto.
      • 36926
      • 701 Posts
      Quote from: bodhiC at Jul 27, 2010, 08:27 AM

      No bennyb. I don’t pagination for what I’m doing. I just wish I could figure out how to pass the pagetitle and my product price tv to ditto.

      whats your ditto call and ditto template?
        • 27421
        • 67 Posts
        Ditto Call
        [!Ditto? &startID=`3` &display=`2` &tpl=`index_gallery`  &randomize=`1` &orderBy=`ASC`!]


        Ditto Template
        [[EvoGallery? &display=`images` &docId=`[+id+]`  &limit=`1` &tpl=`home_gallery_outer` &itemTpl=`home_gallery_item`]]


        EvoGal Item Template
        <div class="row">
        <div class="column grid_5">
        <img src="[+filename:phpthumb=`h=205&w=380&zc=C&q=75#[+images_dir+]`+]" alt="[+title+]"  />
        </div> 
        </div>
        <div class="row">
        <div class="column grid_5 blue">
        <ul class="tabs">
        <li class="lead-in">[+title+] [+product_price+]</li>
        <li><a href="[~[+content_id+]~]" title="[[GetField? &docid=`[+content_id+]` &field=`pagetitle`]]">view product details</a></li>
        </ul>
        </div> 
        </div>
        

          • 36926
          • 701 Posts
          bodHic, i’m a bit confused what you are trying to achive.

          You’re using &limit on the evo call, not 100% on this but doesn’t that mean it will only display 1 image. If so do you actually need to use evogallery and can’t you just use ditto with an image TV.

          Apologies if i’ve got what your trying to do completely wrong.

          Ben
            • 27421
            • 67 Posts
            This is for an e-commerce site. I’m using Evogallery on the actual product pages and product gallery page. I’m using ditto to display two random products on the homepage. Does that make sense? I have multiple photos of the products on the product pages, but I only one two grab one photo of two separate products on the home page.
              • 24393
              • 83 Posts
              It would be great if this were possible without using ditto?
                stevesunderland.com
                GRAPHICS | INTERACTIVE | MARKETING
                xhtml + ajax + seo websites powered by modx
                • 27421
                • 67 Posts
                Yeah it would be great, but as far as I can tell it’s not. huh
                  • 24393
                  • 83 Posts
                  Here’s the EvoGallery call I’m using in a ditto template:
                  [[EvoGallery? &display=`images` &type=`thumbnail` &picId=`0` &docId=`[+id+]` &limit=`1`]]
                  

                    stevesunderland.com
                    GRAPHICS | INTERACTIVE | MARKETING
                    xhtml + ajax + seo websites powered by modx
                    • 36926
                    • 701 Posts
                    Quote from: bodhiC at Jul 27, 2010, 12:05 PM

                    Yeah it would be great, but as far as I can tell it’s not. huh

                    Hey bodhiC, i’ve had ago and also can’t see to get the pagetitle to display if the evoGallery call is within a ditto call. Not sure if you’ve solved this but this did get me thinking and have a solution that may work for you, it’s maybe a bit of over kill but could be an alternative solution if you don’t have any luck with this.

                    By looking at your template all you need is the URL for the image, so if in your evo item template you just have say something like:
                    [+thumbs_dir+][+filename+]
                    


                    Then create a text TV which you set the default value of you evo call
                    [[EvoGallery? &display=`images` &docId=`[+id+]`  &limit=`1` &itemTpl=`home_gallery_item`]]
                    


                    Then your Ditto template uses what you’d originally used for evo item template, but replace the URLs of the images with the TV you created.

                    
                    <div class="row">
                    <div class="column grid_5">
                    <img src="[+youTVname+]" alt="[+title+]" />
                    </div> 
                    </div>
                    <div class="row">
                    <div class="column grid_5 blue">
                    <ul class="tabs">
                    <li class="lead-in">title: [+pagetitle+]</li>
                    <li><a href="[~[+content_id+]~]" title="[[GetField? &docid=`[+content_id+]` &field=`pagetitle`]]">view product details</a></li>
                    </ul>
                    </div> 
                    </div>
                    
                    


                    As said my be over kill and you may of already solved.

                    Ben
                      • 27421
                      • 67 Posts
                      Then create a text TV which you set the default value of you evo call
                      [[EvoGallery? &display=`images` &docId=`[+id+]` &limit=`1` &itemTpl=`home_gallery_item`]]

                      Then your Ditto template uses what you’d originally used for evo item template, but replace the URLs of the images with the TV you created.

                      Thanks for the feedback Bennyb. I still haven’t solved this. However, I’m not sure I’m totally following you. You lost me on the text TV.