[SOLVED] Gallery Modul: Image Count

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
JoFe
Forum Members
Forum Members
Posts: 18
Joined: Thu Mar 11, 2010 9:30 am

[SOLVED] Gallery Modul: Image Count

Post by JoFe »

I use cms 1.7.1. with the Gallery Modul /Fancybox.

On the start page "X images" is shown. Is there a way to eliminate this?

Thanks
Last edited by JoFe on Tue Jun 22, 2010 8:35 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: Gallery Modul: Image Count

Post by Jos »

simply delete it from the fancybox template  :P
JoFe
Forum Members
Forum Members
Posts: 18
Joined: Thu Mar 11, 2010 9:30 am

Re: Gallery Modul: Image Count

Post by JoFe »

that's what I have guessed ...  :-\ Which entry in which file should I look for?
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: Gallery Modul: Image Count

Post by Jos »

Look in the gallery templates tab in the backend and choose to edit the fancybox template.

In the template code field you'll find

Code: Select all

<p>{$imagecount}</p>
delete that row  8)
JoFe
Forum Members
Forum Members
Posts: 18
Joined: Thu Mar 11, 2010 9:30 am

Re: Gallery Modul: Image Count

Post by JoFe »

BINGO! Thanks a lot .....  :)
User avatar
shwartzweb
New Member
New Member
Posts: 4
Joined: Thu Mar 25, 2010 8:27 pm

Re: [SOLVED] Gallery Modul: Image Count

Post by shwartzweb »

I had similar issue and wanted to remove $imagecount. I have galleries and then there are many galleries and silly "0 images". Instead of removing I spent few minutes reading manual and made in template this code:

Code: Select all

{if ($numimages) == '0'}
<p>{$itemcount} galleries</p>
{elsif}
<p>{$imagecount}</p>{/if}
As result I have nice number of Galleries and once you click on it you get nice number of images. Not sure how this will works if you add images and galleries in one mix. But why would you do this?
Post Reply

Return to “Layout and Design (CSS & HTML)”