We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    Ok, here is the deal....
    I have a gallery with subcategories...

    I called them with the following call
    [!Ditto? &depth=`1`!]

    The call output is something like:
    - gallery 1
    - gallery 2
    - etc...

    The question is: How can I put some image (logo of the club) in front of the names of the galleries?

    example:

    ------------
    | image1.jpg |
    ------------
    gallery 1
    (on click goes to listing of all subgaleries)


    ------------
    | image2.jpg |
    ------------
    gallery 2
    (on click goes to listing of all subgaleries)


    ------------
    | image3.jpg |
    ------------
    gallery 3
    (on click goes to listing of all subgaleries)


    etc.....


    Hope you understand smiley


    P.S. I’m learning MODx every day more and more and I just love it (I’m using it on my every site from recently).... but this kinda questions (maybe stupid for you guys) are very important to me... Hope you can help me out wink
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 4707
      • 73 Posts
      If you’re using MaxiGallery for your subcategories, you could call MaxiGallery instead of Ditto to have your main gallery page the way you want it:
      http://wiki.modxcms.com/index.php/MaxiGallery#Also_here.27s_some_examples_of_new_childgalleries_features::

      In case you’re not using MaxiGallery at all, you could put something like this <img src="assets/images/name_of_the_pic.jpg" alt="" /> in the "summary (introtext)" field of your subcategory page and create your Ditto template chunk accordingly:

      <div class="subcategory_post">
      	<a href="[~[+id+]~]">[+introtext+]</a>
      	<p>[+menutitle+]</p>
      </div>


      Then you just have to call Ditto with the name of the chunk as the "tpl" parameter:
      [!Ditto? &depth=`1` &tpl=`DittoTemplateChunkName`!]


      This is just one way to do it. You could also use a TV instead of a page field. HTH.
        • 7923
        • 4,213 Posts
        Yes, either use a TV or some of the extra fields in the document data (symmary, etc..) to define the picture and then use that in your Ditto template or MaxiGallery childgalleryTpl.


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 20349 ☆ A M B ☆
          • 453 Posts
          Yes, I’m using MaxiGallery....

          I’m all confused right now sad


          This is what I’m trying to get..... PLEEEEEEEEEASE HELP MEEE!!!
          on link "mydomain.ext/galleries" I want this kinda look

          P.S. is it possible to add on the side some kind of counter (total number of albums and total number of pics)?

          and when a user clicks on some subgallery (ex. "mydomain.ext/galleries/club1") I want to acheive this look


          ..then the list shows all the galleries and the click on thumbnail opens up that specific gal.



          Can you help me with CSS? What and how to change.... I don’t think this is a problem when you know what are you doing smiley


          P.S. I changed the name of the topic...
            BASE - Web Design Studio
            MODX Ambassador

            Website
            • 7923
            • 4,213 Posts
            For the first view in the gallery main page, use Ditto to list the gallery containers and use TV’s in them to set that specific gallery picture. Then in Ditto’s template, use Wayfinder for example to get the number of child documents (eg. albums) and this to get the picture count:

            [!MaxiGallery? &gal_query_ids=`[+id+]` &query_level_limit=`10` &galleryOuterTpl=`@CODE:Total pictures: [+maxigallery.picscount+]`!]

            Then in the gallery containers, use maxigallery childgalleries display mode to show the "albums". That’s it.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 20349 ☆ A M B ☆
              • 453 Posts
              Can we go a little slower? smiley Step by step please...

              Quote from: doze at Apr 08, 2007, 06:14 PM

              For the first view in the gallery main page, use Ditto to list the gallery containers
              I did that and it shows fine

              Quote from: doze

              use TV’s in them to set that specific gallery picture
              Can you explain this a little better?
                BASE - Web Design Studio
                MODX Ambassador

                Website
                • 7923
                • 4,213 Posts
                Sorry, but I don’t have enough energy to explain how to use TV’s, just try them and you’ll see or search around the forums. There are already tons of info about how to use TV’s. But what I simply mean is that you do image tv or just text tv to the gallery containers to hold the path to the image and in Ditto’s template use that.


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."