We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    I modified the MaxigallerySolo snippet a little to be able to define galleries where pics are being searched, possible to set how many thumbnails to show, show random or latest thumbs and how to open the picture (in lightbox, gallery browser or gallery overview).. If lightbox is used to open the pics, the required scripts/css are included automatically so you don’t have to have them in your template.

    These features are also at the todo list and I’ll include these to the maxigallery snippet itself in some point probably, but separate snippet works just as fine.. (and better if you need to have the gallery and latest pics section at the same time on the same page).

    EDIT: The snippet is now attatched to the first post, get it from there.


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 32926
      • 8 Posts
      Nice one. That’s exactly what I wanted to do this weekend! You saved me from some boring php-Programming, so now I am free to do some other boring php-Programming ;-)

      Thanks and Greets
      XriS
        • 18219
        • 826 Posts
        Quote from: doze at Apr 19, 2006, 01:28 PM

        Quote from: Marc at Apr 19, 2006, 12:05 PM

        @Doze : I renew my request, please: Do you think that this snippets will be able to integrate soon the possibility of adding a link towards a file pdf, a film, a music or another page of the site?
        It’s all doable, but I’m not gonna do it for now. In quick, you could do it by your self by editing your code and remove the htmlentities calls what converts the characters to html entities, so you would be able to put html code straight to the title/description fields to build your links. But then you would have to put all french characters as entities by your self if you need valid source code. Or then tie up some light wysiwyg editor to the text areas, that’s easy too.. Like this or tie the modx fckeditor to the textareas like UserComments snippets does. Haven’t taken a look at so don’t know how it’s done.

        I just started a new job this week and I’ll be very busy trying to learn all the new things there, so I don’t have the energy to develope this right now. I really wanted to finish the templating ability to this snippet before I started the job, but didn’t have enough time to get around to it. If anyone else want to do some work with this in the mean time, it would be more than welcome. And you can also contact me if you need any coding help/advice/something. The next thing I will do to this snippet is build the templating ability to it by using Wendys chunktpl library, unless someone beats me to it smiley ..But don’t expect that to happen very soon.

        I’ll still be around here, but the developement of this snippet from my part will be slow for atleast a while. Sorry!
        @doze : I do not have great competences in PHP but I can look at what I can do to bring of the additional functions, without anything to promise for the moment.
        I propose to see that in the weekend.

        I would like for that to know the progress report of the project. See the possibility of distributing the development. Why not re-examine the code so that it accepts parallel developments.

        I specify that I do not have competence in the image processing. This snippet learned to me much on this subject.
        I would like to know what you think.
          Marc
          I'm French... Sorry for my bad English, I use ' Google Translator' or other... but that remains that tools wink
          • 7923
          • 4,213 Posts
          Quote from: Marc at Apr 21, 2006, 03:18 PM

          I would like to know what you think.
          I’m sorry, but again I don’t quite get what you are asking from me? laugh anyways, if it’s the snippet progress report that you’re asking for, the newest code is in 0.4 at the first post. I haven’t done anything to it after that and won’t be doing anytime soon probably (unless some small tweaks here or there).

          I’m not sure what would you like to have in the snippet, do you want an extra field where you can set html code straight and other fields would still have the html entities converted? Do you want the htmlentities usage to be parametrized, so you could set it off in the snippet call? Do you want the textareas to be wysiwyg editors? Do you want more information of something/my help with something?

          What I could do pretty quickly is do a parameter where you could disable the htmlentities conversion altogether and then you would be able to put straight html code to the title/description fields..


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            I think Marc wants to be able to add <a> tags around the images so they will be links to external resources.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 18219
              • 826 Posts
              Thanks Susan is exactely :
              I wish an additional field below title/description to allow a link towards an external file (music, pdf or other...) or an existing file on the server in assets/files. The ideal would be to be able to open the window of management of the files/images of FCK
                Marc
                I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
                • 7923
                • 4,213 Posts
                When the templating feature is done to this snippet, It’s possible to add all kinds of extra fields and format the output to be whatever. But in this point of the developement, If you are not able to add the extra dbfield yourself to the code structure, I think that you should just remove the htmlentities calls and put the external links to the description fields as html code..

                But if you need to do a "fool proof" procedure of the catalog management, meaning that the people who update the catalog do not know html, then it’s not such a good option as they may break things when doing invalid html code.

                EDIT: oh, just read again your post, so you want the external links to open when clicking the thumbnails and there wouldn’t be any pic pictures to view at all? Then you’re better off by editing the MaxiGallerySolo snippet to get the external link from the title or description field and modify the output to build links to the external links instead of gallery pics..


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 13736
                  • 345 Posts
                  I’m just curious. What exactly would you use such an external link feature for in an gallery?



                    • 18219
                    • 826 Posts
                    @jbjones : I propose the idea simple to be able to add an additional link under the pic to open an external file (pdf, music, film, another page, etc...) with an aim of making a catalogue of product.

                    MaxiGallery would be then also a complement with the snippet shopx (for example).

                    @doze : No, I think just used MaxiGallery snippet (not MaxiGallerySolo) with a link for an external files under the pic.
                      Marc
                      I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Actually, Marc, you could use the NewsListing snippet for this. Each product in the catalog would have a TV with its image, a user can select the image for each item via the TV. They could use the Insert Image button from the document’s content RTE to upload the image.

                      Then create a template for NewsListing that includes that TV as part of the summary block. You don’t have to have a complete "summary" in the NewsListing output, just the TV and the title or longtitle and a date. You can even use another TV for price, and have the NewsListing display that as well.
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org

                      This discussion is closed to further replies. Keep calm and carry on.