Page 1 of 1
multiple galleries and targetpage for each
Posted: Fri Jul 13, 2012 9:12 pm
by Tracy
cms version 1.10.3
Gallery version 1.5.3
hello, and thanks for the help (hopefully) I find it hard to explain what I'm trying to achieve but here goes.
I would like to display the active thumbnail image from each of my categorized galleries on one main page called "Shopping Carts" from here I want to select it and use targetpage='whichever' to take the viewer to another page to view that gallery and more product details. I've used
and the galleries display fine on that page however, although they are given their proper category name they all go to that same target page. For example the Children's Cart gallery named correctly shows on the Special Needs page because that was the targetpage for all. So what I have tried to do is select the active thumb for an individual category (dir) and give it a separate targetpage like so..
Code: Select all
{Gallery dir="Most-Popular" show='active' targetpage='most-popular'}
and then I thought I would do that for each but that isn't working because it just wants to directly bring up the gallery. The other problem is that I have these page links in my dropdown menu but they don't seem to connect with the targetpage code one even though I've use the page alias . Like I said, this is hard to explain. Here is my link which would be clearer. Thankyou so much
http://www.jneretail.com/index.php?page=shopping-carts
Re: multiple galleries and targetpage for each
Posted: Fri Jul 20, 2012 2:56 pm
by Dr.CSS
That link only gives an under construction page...
It sounds like you want to use thumbnails as links to pages that show products with a Gallery, why not just use a thumbnail with link to page not a gallery on first page, you could use page image selected in options tab and make a menu to auto add it to first page content?...
Re: multiple galleries and targetpage for each
Posted: Fri Jul 20, 2012 3:41 pm
by Tracy
Thankyou, I have been playing with my issue and have gotten it a bit better but still have an issue. If you look at the same link now. On my shopping cart page I have it how I like it with the thumbs and name of group/category underneath the thumb. When you click on the thumb it takes you to the target page which is still "shopping carts" but now shows enlargeable thumbs and a link to the specific detail page.
The other issue is that I know I'm not using the template properly to get my category link to work, This is what I have in my gallery 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}
<div class="pagenavigation">
{if $pages > 1}
<div class="prevpage">{$prevpage}</div>
<div class="nextpage">{$nextpage}</div>
{/if}
{if !$hideparentlink && !empty($parentlink)}<div class="parentlink">{$parentlink}</div>{/if}
{if $pages > 1}<div class="pagelinks">{$pagelinks}</div>{/if}
</div>
{foreach from=$images item=image}
<div class="img">
<div class="title_pagelink"><a href="index.php?page={$image->title}" />{$image->title}</a></div>
{if $image->isdir}
<a href="{$image->file}" title="{$image->titlename}"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" /></a><br />
{$image->titlename}
{else}
<a href="{$image->file|escape:'url'|replace:'%2F':'/'}" title="{$image->titlename}" rel="lightbox[gallery]"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" /></a><br/>
<div class="comment">{$image->comment}</div>
{/if}
</div>
{/foreach}
<div class="galleryclear"> </div>
</div>
and then in my galleries in the image title field I put the page alias
You will see that I used 2 different gallery templates 1 for my main galleries ie; Shopping Carts and 1 for my subgalleries ie; Most Popular etc. What I notice about the menu is for example if I go straight to a page from the drop down menu Shopping Carts/Most Popular my breadcrumbs look good but I have my page title and the gallery title the same. If I go through the gallery links clicking Shopping Carts and then the thumb of Most Popular my breadcrumb stays on Shopping Carts and I see my titles different now so I wonder what is the best way and what am I doing wrong here?
Thankyou, any directions?
Re: multiple galleries and targetpage for each
Posted: Fri Jul 20, 2012 3:48 pm
by Tracy
I am building this site to make it the simplest possible for them to edit and add new products themselves without knowing html/css. I have also tried using the Products module for this but I don't know how to combine the Gallery module with it so that I have my gallery of category thumbs taking them to the products summary page (or would that be the initial thumbnail/category page somehow) and then the product detail page. I know my difficulty mostly is not really understanding the smarty thing