Display more Galleries in one Document
Posted 21 February 2009 - 10:32 AM
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?
Posted 21 February 2009 - 11:56 AM
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/> <a href='[~%%link%%~]'><img class='thumb' src='/%%file%%' title='%%title%%' alt='%%sdesc%%' %%size%%/></a> <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 definitionswhich 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
Posted 21 February 2009 - 01:10 PM
btw. nice Page and very nice Photos
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users