We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17097
    • 41 Posts
    Quote from: rossco at Jun 29, 2008, 12:49 PM

    I have been thinking about why you are calling the image via a tv... what options are you choosing for your TV? I’m thinking it’s the TV option you have chosen that is adding the extra tags. It will work fine in a chunk, then call the chunk from the TV myimage=={{mychunk}}

    Go with MaxiGallery if you plan on using lots of images on your site and the added benefit of the lightbox will be a great addition to your site.

    Well I started with a page that had no sidebar, so I wanted the page to have a sidebar where I can place some pictures. I started searching how to do that and a couple of threads said that you should create a TV for that. So I did that.
    So you are saying I have to create a chunk with the onclickcode and then in the TV I choose as default value : @INHERITmyimage=={{mychunk}? Is that the right code?
      • 17097
      • 41 Posts
      I created a chunk, called "onclick" and put this code as the default value in the TV: @CHUNK onclick
      But the result is the same. Even with the appearing /> at the end. embarrassed
      So I think some sort of gallery is needed. I will try that tomorrow.
      • Create a tv and name it.

        name : myTV
        Input Type: check box
        Input Option Values: sidebar=={{sidebar}}

        select which template it can be used with and save.

        Create a chunk called sidebar and put your code in the chuck.

        Then when you create a page, at the bottom of the edit area is you TVs. Check the box and it will show up on that page.

        Make sure you put the TV in your template somewhere. [*myTV*]
          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart
          • 17097
          • 41 Posts
          Yes that does work! Thanks! The only thing is, how do I get it in the right place? It now shows up on a random place. How can I tell it where exactly to be? In the default.css I have specified the place of the content-right and the contentright2, where the pictures should be, but somehow I have to connect the chunk with that.
          Man this is difficult!
          I also got it to work with the onclick chunk, but that also messed the page up.
          • Quote from: libralion at Jun 29, 2008, 06:10 PM

            Yes that does work! Thanks! The only thing is, how do I get it in the right place? It now shows up on a random place. How can I tell it where exactly to be? In the default.css I have specified the place of the content-right and the contentright2, where the pictures should be, but somehow I have to connect the chunk with that.
            Man this is difficult!
            I also got it to work with the onclick chunk, but that also messed the page up.

            If you want the information to be in your content-right div you would do

            <div id="content-right">
            [*myTV*]
            </div>

            The information from the TV will be put in this div tag.
              Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
              AugmentBLU - MODX Partner

              BLUcart - MODX Revolution E-Commerce & Shopping Cart
              • 17097
              • 41 Posts
              Yessssssssssssssssss! Finally. Thanks so much. grin
              I placed the myTV tag in the right-content and also the myTV2 in the right-content2 and it works!
              http://www.jomedio.nl/modx/index.php

              The only thing to completion is, that I don’t see a litttle hand when I go over the image. Is that possible or not?
              • That’s good news.

                One thing I would do... If you hover the mouse over the image, you can see the arrow stays as is rather than changing to a pointer to signify the image is clickable.

                I would make a style for the content like style="cursor:pointer;" this will change the mouse arrow to a pointer so you know you can click the element.

                Looking good though.
                  Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                  AugmentBLU - MODX Partner

                  BLUcart - MODX Revolution E-Commerce & Shopping Cart
                  • 4310
                  • 2,310 Posts
                  I think you will need to wrap your image tags like this otherwise the browser doesn’t know it’s a link.
                  <a href="#"><img src="assets/images/gray_small1.JPG" alt="gray_small" width="100" height="86" onclick="MM_openBrWindow('assets/images/gray.JPG','mypopup','width=580,height=510')" /></a>

                  or
                  <a href="#" onclick="MM_openBrWindow('assets/images/gray.JPG','mypopup','width=580,height=510')" ><img src="assets/images/gray_small1.JPG" alt="gray_small" width="100" height="86" /></a>

                  Of course you may want to restyle the image link in the CSS to get rid of the border.
                  EDIT - I thought you’d need it as a link, but I stand corrected, yet again!
                    • 17097
                    • 41 Posts
                    Quote from: rossco at Jun 30, 2008, 10:05 AM

                    That’s good news.

                    One thing I would do... If you hover the mouse over the image, you can see the arrow stays as is rather than changing to a pointer to signify the image is clickable.

                    I would make a style for the content like style="cursor:pointer;" this will change the mouse arrow to a pointer so you know you can click the element.

                    Looking good though.

                    Great! Now we have got a hand. Man I have got a lot to learn and I already did. Thanks Rossco for everything!
                    I will go on with trying to figure out how to embed video and audio.

                    Bunk, I think it is solved now, so I don’t think I am going to change the code. But thanks for your input!
                    • Good Glad that’s you sorted out with that now!

                      grin
                        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                        AugmentBLU - MODX Partner

                        BLUcart - MODX Revolution E-Commerce & Shopping Cart