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

    Im so glad everytime i log on to ModXCms and sees that there is a new version/script/snippet or what so ever.. So thanks for that!

    Anyway,
    Im trying to make comments function work with MaxiGallery, ive set everything up correctly (as i can tell, comments do work on any other page) but when i try to include the &pictureTpl in the maxigallery call it doesnt work! Maxigallery doesn´t use the template, chunk. I cant see what im doing wrong... What am i missing?

    Chunk created with name: mgPictureTplComment and containing the pictureTpl.html codes.

    Call is: [!MaxiGallery? &pictureTpl=`mgPictureTplComment` &display=`embedded` &embedtype=`slimbox` &pics_per_row=`6` &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`0` &pic_use_watermark=`1` &pic_watermark_type=`image` &pic_watermark_img=`assets/snippets/maxigallery/watermark/watermark.png`!]
      • 7923
      • 4,213 Posts
      pictureTpl is the template that is used when viewing a single picture in normal display mode. You are using embedded display mode, so pictureTpl is never used. You only use galleryOuterTpl and galleryPictureTpl (for each picture).


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 3006
        • 32 Posts
        Oh, i see.

        I just followed the guidelines on the wiki for Jot & Maxigallery. Thought they were in "standard"-mode.

        So i should use "galleryOuterTpl" if i want to add comments to the whole gallery and "galleryPictureTpl" if i want comments for each picture?
          • 7923
          • 4,213 Posts
          Where are you going to show the comments for each picture when you are using embedded display mode?

          If you want to add commenting to the whole gallery, just add jot call normally after maxigallery call..


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 3006
            • 32 Posts
            Quote from: doze at Jul 17, 2007, 11:00 AM

            Where are you going to show the comments for each picture when you are using embedded display mode?

            If you want to add commenting to the whole gallery, just add jot call normally after maxigallery call..

            Im so dumb rolleyes cool
              • 18878
              • 210 Posts
              Sorry for resuscitating this post.

              I’m also using &display=`embedded` &embedtype=`slimbox` and I’m trying to format the text displayed below the "zoomed in" version of the picture.

              I noticed that the text located below the picture is taken from the title of the a href in galleryPictureTpl :
              [+maxigallery.embedtype:is=`slimbox`:then=`
              <a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[maxigallery]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
              `+]

              This always generates a fixed "title - description". Is there a way of formatting this title and description by applying some html, and adding some links perhaps?

              Your help will be appreciated.

              Mc
                • 7923
                • 4,213 Posts
                Yes, you can do a custom galleryPictureTpl and modify it in anyway you want. If you remove the :htmlent phx modifier from the placeholders, you can use html code in picture titles and descriptions. Note that the page won’t validate though if you have html inside title attribute, but It’ll work.


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 18878
                  • 210 Posts
                  Quote from: doze at Aug 05, 2009, 04:28 PM

                  Yes, you can do a custom galleryPictureTpl and modify it in anyway you want. If you remove the :htmlent phx modifier from the placeholders, you can use html code in picture titles and descriptions. Note that the page won’t validate though if you have html inside title attribute, but It’ll work.

                  Thanks a lot, that worked!