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

    dans gallerypicturetpl.html tu as tout les affichages rassemblés et les tests PHx sont là pour "choisir" le bon morceau de html qui est nécessaire (en fonction de ton appel = embedtype) . Par exemple toi tu utilise slimbox donc tu utilise que de la ligne 26 à la ligne 30 de ce document.

    sinon le <li> vient du template gallerypicturetpl.html ligne 13... et la seule galerie qui a des <div> par défaut c’est smoothgallery.
      CTRL+SHIFT+U - Clear Cache
      CTRL+SHIFT+H - Hiding Heft Panel
      CTRL+SHIFT+N - Fast Create Resource
      CTRL+ALT+P - Preview Recource (in edit resorce window)
      CTRL+ALT+S - Save
      • 21101
      • 169 Posts
      ah ok ça marche smiley
        Play no games
        • 21101
        • 169 Posts
        décidement j’ai vraiment du mal sur Maxigallery grin j’ai ajouté &galleryPictureTpl avec un chunk vraiment basique et les images ont disparu... pourtant elles sont bien insérées (j’ai regardé dans la source), j’aimerai faire 2 choses sur la meme page:

        le 1er appel a MaxiGallery pour qu’il me génere des petites minatures de 85px de large avec un lien externe dessus (celui que je met dans le titre par exemple):
        je veux un truc tout simple, comme ceci: (les paragraphe sont en taille fixe + float:left)
        [tt]<p class="homeImg">
        <a href="" title=""><img src="assets/maxigallery/galleries/105/tn_monimage.jpg" alt="" title="" /></a>
        </p>[/tt]

        le 2eme appel est un peu plus ocmpliqué, je veux une miniature différente de mon image aggrandie, possible ?
          Play no games
          • 36624
          • 535 Posts
          mmh.. basique oui mais tu devrait au moins avoir un chunk comme ça (extraction de la partie de slimbox du fichier gallerypicturetpl.html) :

          <li>
          
          <a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[maxigallery]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
          
          <img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
          	
          	</a>
          
              [+maxigallery.picture.title:isnot=``:then=`
          		<p style="width: [+maxigallery.picture_width_thumb+]px;">
          		[+maxigallery.picture.title:htmlent+]
          		</p>
          	`+]
              [+maxigallery.picture.descr:isnot=``:then=`
          		<p class="description">©  [+maxigallery.picture.descr:htmlent+]
          		</p>
          	`+]
          
          </li>


          pour ta deuxieme question : les images (tn_) sont générées à l’upload donc si tu veux tu peux très bien réuploader par dessus par ftp d’autres images.
            CTRL+SHIFT+U - Clear Cache
            CTRL+SHIFT+H - Hiding Heft Panel
            CTRL+SHIFT+N - Fast Create Resource
            CTRL+ALT+P - Preview Recource (in edit resorce window)
            CTRL+ALT+S - Save
            • 21101
            • 169 Posts
            hello

            merci a tous pour votre aide, j’ai réussi a faire ce que je voulais, j’ai modifié le fichier gallerypicturetpl.html avec ceci:
            [+maxigallery.embedtype:is=`smoothgallery`:then=` 
            	<div class="imageElement">
            	<h3>[+maxigallery.picture.title:htmlent+]</h3>
            	<p>[+maxigallery.picture.descr:htmlent+]</p>
            	<a href="[+maxigallery.picture_link_url+]" title="[+maxigallery.strings.click_to_zoom+]" class="open"></a>
            	<img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="full" />
            	<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" />
            	</div>
            `+]
            [+maxigallery.embedtype:is=`slimbox`:then=` 
            	<p class="mgThumbGal">
            	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[maxigallery]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
            		<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
            	</a>
            	</p>
            `+]
            [+maxigallery.embedtype:is=`popup`:then=` 
            	<a href="javascript:void(0);" onClick="javascript:openWindow('[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]','[+maxigallery.picture.title:htmlent+]',[+maxigallery.picture_height_normal+],[+maxigallery.picture_width_normal+],'gallery');">
            `+]
            [+maxigallery.embedtype:is=`external`:then=` 
            	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="external">
            `+]
            [+maxigallery.embedtype:is=``:then=`
            	<p class="homeImg">
            	<a href="[+maxigallery.picture.title:htmlent+]" title="[+maxigallery.picture.title:htmlent+]">
            		<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" title="[+maxigallery.picture.title:htmlent+]" alt="[+maxigallery.picture.title:htmlent+]" />
            	</a>
            	</p>
            `+]


            ce qui me sort des images générées comme ceci:
            <p class="homeImg">
            	<a href="http://www.clien1.com" title="http://www.client1.com">
            		<img src="/assets/galleries/105/tn_logo_client1.png" title="http://www.client1.com" alt="http://www.client1.com" />
            	</a>
            </p>
            <p class="homeImg">
            	<a href="http://www.client2.com" title="http://www.clien2.com">
            		<img src="/assets/galleries/105/tn_logo_client2.png" title="http://www.client2.com" alt="http://www.client2.com" />
            	</a>
            </p>


            pour ma deuxieme solution, je pense que je vais le faire à la main, avec des images insérées par TinyMCE, dommage, mon supérieur adore la gestion de maxigallery grin
              Play no games
              • 21101
              • 169 Posts
              Mon MaxiGallery ne marche plus :’( je comprends pas pkoi, j’ai tout supprimé, et réinstallé (j’ai donc viré mes templates trafiqués), j’apelle MaxiGallery comme ceci:

              [[MaxiGallery? &lang=`fr` &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`640` &thumb_use_dropshadow=`1` &disable_js_libs=`1` ]]


              le fichier de langue est meme pas pris en compte, le debug non plus...

              le bouton "manage pictures" est toujours présent (meme quand je ne suis pas loggué au manager)... c’est pas un conflit avec quickedit ? huh

              edit: non pas de conflit avec QuickEdit... je viens de le désactiver ça le fait toujours... je vais aller regarder dans ma CSS mais sinon je vois pas trop ce qui pourrait clocher...
                Play no games
                • 36624
                • 535 Posts
                roolback wink

                tu remets "minimal template" et tu fais un appel basique [!Maxigallery!] si ca passe toujours pas alors vérifie les noms des snippets et de tes dossiers.
                  CTRL+SHIFT+U - Clear Cache
                  CTRL+SHIFT+H - Hiding Heft Panel
                  CTRL+SHIFT+N - Fast Create Resource
                  CTRL+ALT+P - Preview Recource (in edit resorce window)
                  CTRL+ALT+S - Save