Jump to content


Photo

Display more Galleries in one Document


  • Please log in to reply
2 replies to this topic

#1 stp69

stp69

    Etomite Forum Newbie

  • Member
  • 41 posts

Posted 21 February 2009 - 10:32 AM

Hello

first sorry my bad english, i hope you understand what i need...

i build 3 gallerie dokuments with EtoGal, Dokument ID is 4, 5 and 6.
i create a new Dokument (folder, ID 7) and place the gallerie-dokuments under it.

Now i want to create in the ID-7 a thumbnail from one pic of every gallerie to link in the children-dokument

I thought i use the snippes EtoGalThumb or EtoGalGallery for solutions, but i don't find the way

it is possible to create a overview with this snippes or must i "hardcode" the Page?

#2 mikef

mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 21 February 2009 - 11:56 AM

Do you want something like on the Mike Finley Photography home page?

Etogalthumb is the one to use, but you can't do that with a single snippet call. The code for the gallery section on that page is
<h2>Galleries</h2>
<table style='border: 0px;'>
<tr>
<th><h3>landscape</h3></th>
<th><h3>flowers</h3></th>
<th><h3>lower moss wood</h3></th>
</tr>
<tr>
[[egthumb?style=mf0&gal=55&link=55]]
[[egthumb?style=mf0&gal=54&link=54]]
[[egthumb?style=mf0&gal=57&link=57]]
</tr>
</table>
The calls for the snippet return a random image from the numbered gallery, and set the linked page to that gallery. The style obviously is specific to my site, and you'll probably want to style it somewhat differently, but the styling used is
// style=mf0 for the mikefinley site
if ($style == "mf0") $count=1;
$styleStrings['mf0']['header']=0; 
$styleStrings['mf0']['image']=<<<IMG
<td style="background-color: #333; text-align:center; border: 0px; border-color: #000; margin:0px;">
<div style="height: 160px">
<br/>&nbsp;<a href='[~%%link%%~]'><img class='thumb' src='/%%file%%' title='%%title%%' alt='%%sdesc%%' %%size%%/></a>&nbsp;
<p>%%title%%</p><br />
</div>
<br/><p><a href='[~%%link%%~]'>visit the %%ptitle%%</a></p>
</td>
IMG;
$styleStrings['mf0']['tail']=0;
$styleStrings['mf0']['break']=0;
// end of style definitions
which would need to be added to the top of the etogalthumb snippet you are using. (I think all the parameters used are in the standard released snippet, but as all of my sites use customised snippets I can't be 100% sure.)

I hope that helps

#3 stp69

stp69

    Etomite Forum Newbie

  • Member
  • 41 posts

Posted 21 February 2009 - 01:10 PM

mikef, thank you works very fine.

btw. nice Page and very nice Photos




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users