<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://en.contaowiki.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://en.contaowiki.org/index.php?action=history&amp;feed=atom&amp;title=Gallery_with_just_one_thumb</id>
		<title>Gallery with just one thumb - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://en.contaowiki.org/index.php?action=history&amp;feed=atom&amp;title=Gallery_with_just_one_thumb"/>
		<link rel="alternate" type="text/html" href="https://en.contaowiki.org/index.php?title=Gallery_with_just_one_thumb&amp;action=history"/>
		<updated>2026-05-01T00:43:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.22.6</generator>

	<entry>
		<id>https://en.contaowiki.org/index.php?title=Gallery_with_just_one_thumb&amp;diff=2284&amp;oldid=prev</id>
		<title>Andreas at 00:10, 23 November 2013</title>
		<link rel="alternate" type="text/html" href="https://en.contaowiki.org/index.php?title=Gallery_with_just_one_thumb&amp;diff=2284&amp;oldid=prev"/>
				<updated>2013-11-23T00:10:24Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 00:10, 23 November 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Admin &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;HOWTOs&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Admin &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;HOWTOS&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Editors and Users]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Editors and Users]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{AppliesTo&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{AppliesTo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key kunde29sql2:diff:version:1.11a:oldid:2283:newid:2284 --&gt;
&lt;/table&gt;</summary>
		<author><name>Andreas</name></author>	</entry>

	<entry>
		<id>https://en.contaowiki.org/index.php?title=Gallery_with_just_one_thumb&amp;diff=2283&amp;oldid=prev</id>
		<title>Andreas: /* Template */</title>
		<link rel="alternate" type="text/html" href="https://en.contaowiki.org/index.php?title=Gallery_with_just_one_thumb&amp;diff=2283&amp;oldid=prev"/>
				<updated>2013-11-23T00:06:43Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Template&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 00:06, 23 November 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/**&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/**&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * @filename gallery_single_image&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * @filename gallery_single_image&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.html5&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * @version Contao 3.2.0&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * @version Contao 3.2.0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * @license LGPL&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; * @license LGPL&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key kunde29sql2:diff:version:1.11a:oldid:2282:newid:2283 --&gt;
&lt;/table&gt;</summary>
		<author><name>Andreas</name></author>	</entry>

	<entry>
		<id>https://en.contaowiki.org/index.php?title=Gallery_with_just_one_thumb&amp;diff=2282&amp;oldid=prev</id>
		<title>Andreas: New Page</title>
		<link rel="alternate" type="text/html" href="https://en.contaowiki.org/index.php?title=Gallery_with_just_one_thumb&amp;diff=2282&amp;oldid=prev"/>
				<updated>2013-11-22T23:58:53Z</updated>
		
		<summary type="html">&lt;p&gt;New Page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Admin HOWTOs]]&lt;br /&gt;
[[Category:Editors and Users]]&lt;br /&gt;
{{AppliesTo&lt;br /&gt;
|Version=all versions&lt;br /&gt;
}}&lt;br /&gt;
{{msgWarning|&lt;br /&gt;
Even though it's for '''all versions''' a slightly modification might be necessary for versions below Contao 3.2.0.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=Gallery with just one thumb=&lt;br /&gt;
&lt;br /&gt;
==Goal==&lt;br /&gt;
&lt;br /&gt;
A FE gallery with one thumb and the possibility to navigate all pics in a ''lightbox''. Javascript has to be enabled.&lt;br /&gt;
&lt;br /&gt;
==Realization==&lt;br /&gt;
&lt;br /&gt;
You have to use a modified version of template gallery_default.html5.&lt;br /&gt;
&lt;br /&gt;
==Template==&lt;br /&gt;
&lt;br /&gt;
Here's the template gallery_single_image.html5. On XHTML-output '''figure''' has to be replaced with '''div'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * @filename gallery_single_image&lt;br /&gt;
 * @version Contao 3.2.0&lt;br /&gt;
 * @license LGPL&lt;br /&gt;
 * @description A gallery template that only loads the first thumb but shows all pics in mediabox or colorbox.&lt;br /&gt;
                Check 'Full-size view/new window' in your gallery.&lt;br /&gt;
                Don't forget to load moo_mediabox or j_colorbox in your layout.&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;gallery-single-image&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php $i = 1; foreach ($this-&amp;gt;body as $class=&amp;gt;$row): ?&amp;gt;&lt;br /&gt;
&amp;lt;?php foreach ($row as $col): ?&amp;gt;&lt;br /&gt;
&amp;lt;?php if ($col-&amp;gt;addImage): ?&amp;gt;&lt;br /&gt;
&amp;lt;?php if ($i == 1): ?&amp;gt;&lt;br /&gt;
&amp;lt;figure class=&amp;quot;image_container&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php endif; ?&amp;gt;&lt;br /&gt;
&amp;lt;?php if ($col-&amp;gt;href): ?&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;&amp;lt;?php echo $col-&amp;gt;href; ?&amp;gt;&amp;quot;&amp;lt;?php echo $col-&amp;gt;attributes; ?&amp;gt; title=&amp;quot;&amp;lt;?php echo $col-&amp;gt;alt; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php if ($i == 1): ?&amp;gt;&amp;lt;img src=&amp;quot;&amp;lt;?php echo $col-&amp;gt;src; ?&amp;gt;&amp;quot;&amp;lt;?php echo $col-&amp;gt;imgSize; ?&amp;gt; alt=&amp;quot;&amp;lt;?php echo $col-&amp;gt;alt; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php endif; ?&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;?php endif; ?&amp;gt;&lt;br /&gt;
&amp;lt;?php if ($i == 1): ?&amp;gt;&lt;br /&gt;
&amp;lt;/figure&amp;gt;&lt;br /&gt;
&amp;lt;?php endif; ?&amp;gt;&lt;br /&gt;
&amp;lt;?php endif; ?&amp;gt;&lt;br /&gt;
&amp;lt;?php $i++; endforeach; ?&amp;gt;&lt;br /&gt;
&amp;lt;?php endforeach; ?&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
--[[User:Andreas|Andreas Burg]] 00:58, 23 November 2013 (CET)&lt;br /&gt;
[[de:Galerie mit nur einem Vorschaubild]]&lt;/div&gt;</summary>
		<author><name>Andreas</name></author>	</entry>

	</feed>