Gallery module: show all subgalleries' content on one page
Re: Gallery module: show all subgalleries' content on one pa
As far i know Gallery doesn't support something like this.
Re: Gallery module: show all subgalleries' content on one pa
You will probably have to write a UDT which cycles through all the sub directories of Gallery and then reads the name of each sub folder and passes that back to the Gallery smarty call.
Re: Gallery module: show all subgalleries' content on one pa
Actually yesterday i was in need of something similar (thx to Nicmare for the idea), well displaying one image for each gallery but opening all in fancybox, but idea and workflow should be the same for your task.
Hope you will get the point:
Hope you will get the point:
Code: Select all
{if $image->isdir}
{assign var='gallery_call' value="`$maindir`/`$image->filename`"}{* assign name of gallery and Gallery directory *}
{Gallery dir=$gallery_call template='sub_gallery'} {* create a template for thumbnails and call another Gallery with assigned path *}
{$image->filedate|cms_date_format:'%b %d, %Y'}
{$gallerytitle}
{/if}
Re: Gallery module: show all subgalleries' content on one pa
Hello,
I try you solution, but when I copy to website, site is white and no CSS style working.
My template:
what have I bad?
I try you solution, but when I copy to website, site is white and no CSS style working.
My template:
Code: Select all
<div class="gallery">
{if !empty($module_message)}<h4>{$module_message|escape}</h4>{/if}
{if !empty($gallerytitle)}<h3>{$gallerytitle}</h3>{/if}
{if !empty($gallerycomment)}<div class="gallerycomment">{$gallerycomment}</div>{/if}
{if !$hideparentlink && !empty($parentlink)}<div class="parentlink">{$parentlink}</div>{/if}
{foreach from=$images item=image}
<div class="img">
{if $image->isdir}
{assign var='gallery_call' value="Galerie/Gallery"}{* assign name of gallery and Gallery directory *}
{Gallery dir=$gallery_call template='sub_gallery'}
{$image->filedate|cms_date_format:'%b %d, %Y'}
{$gallerytitle}
{/if}
</div>
{/foreach}
<div class="galleryclear"> </div>
</div>
Re: Gallery module: show all subgalleries' content on one pa
Is there any error? Turn debug mode on to see errors.
I don't think this would be correct Gallery path "Galerie/Gallery".
Did you also create a template named sub_gallery?
I don't think this would be correct Gallery path "Galerie/Gallery".
Did you also create a template named sub_gallery?
Re: Gallery module: show all subgalleries' content on one pa
i create the sub_gallery template and copy your code to site, and css working, but pictures and gallery look bad. You can look in:
http://www.dp2.cz/new/index.php?page=galerie
I set the main gallery with template "sub_gallery". Subgallery with template "fanbox".
Maybe I dont understend...
I mus have new template "sub_gallery" with that code, and use it on main or subgallery?
And is possible add hyperlink to view solo subgallery?
http://www.dp2.cz/new/index.php?page=galerie
I set the main gallery with template "sub_gallery". Subgallery with template "fanbox".
Maybe I dont understend...
I mus have new template "sub_gallery" with that code, and use it on main or subgallery?
And is possible add hyperlink to view solo subgallery?
Re: Gallery module: show all subgalleries' content on one pa
You need to call main Gallery that should list all galleries with Tempalte posted above {Gallery template='name_of_template_as_saved_from_above_sample'}.
Maybe you can post how did you include the Gallery on the page, and how those templates look like.
Maybe you can post how did you include the Gallery on the page, and how those templates look like.
Re: Gallery module: show all subgalleries' content on one pa
When i use default code, is working, but only create a "folder icon", not thumbnail. I want to use your code only to create thumbnail, but unsuccessfully:(
I have 2 Gallery. I want, open site with maindir Gallery, set on site is {Gallery}. Subgalleries is other site with code {Gallery dir='DP2'} and {Gallery dir='DP2'} and {Gallery dir='DP2funny'}. I want to generate the thumbnail (3 pict. from xx) on subgalleries, and after click on picture view all pictures in funcybox. On title I try create hyperlink and then view only one gallery, but I dont know how create the dynamic hyperlink (creating with url gallery).
Where I must copy your code? I must create the sub_gallery template and replace default code in <div's> with your?
And main Gallery site must template fancybox(lightbox..)?
thanks
I have 2 Gallery. I want, open site with maindir Gallery, set on site is {Gallery}. Subgalleries is other site with code {Gallery dir='DP2'} and {Gallery dir='DP2'} and {Gallery dir='DP2funny'}. I want to generate the thumbnail (3 pict. from xx) on subgalleries, and after click on picture view all pictures in funcybox. On title I try create hyperlink and then view only one gallery, but I dont know how create the dynamic hyperlink (creating with url gallery).
Where I must copy your code? I must create the sub_gallery template and replace default code in <div's> with your?
And main Gallery site must template fancybox(lightbox..)?
thanks
Re: Gallery module: show all subgalleries' content on one pa
Are you talking about the sub-directories on one page or do you want to display every individual photo on one page? {Gallery} I added this code to display my sub-directories.
I only just started using it and I am having problems trying to display the pages properly once you click on a sub-gallery directory.
Any suggestions?
I only just started using it and I am having problems trying to display the pages properly once you click on a sub-gallery directory.
Any suggestions?