<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Dataform_Photo_Galleries</id>
	<title>Dataform Photo Galleries - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Dataform_Photo_Galleries"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Dataform_Photo_Galleries&amp;action=history"/>
	<updated>2026-05-07T11:22:26Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Dataform_Photo_Galleries&amp;diff=3335&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Dataform_Photo_Galleries&amp;diff=3335&amp;oldid=prev"/>
		<updated>2024-10-18T06:37:35Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:37, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Dataform_Photo_Galleries&amp;diff=3334&amp;oldid=prev</id>
		<title>1&gt;Germanvaleroelizondo: added link to spanish translation of document</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Dataform_Photo_Galleries&amp;diff=3334&amp;oldid=prev"/>
		<updated>2014-01-05T00:37:46Z</updated>

		<summary type="html">&lt;p&gt;added link to spanish translation of document&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Dataform}}&lt;br /&gt;
Dataform-based photo galleries are very easy to create by including available javascript libraries and short javascript snippets for applying gallery effects to designated views in the Dataform activity. Such Dataform galleries could be used either as resources for disseminating designated content or graded activities. They could serve as a platform for collaboration and sharing users contributions.&lt;br /&gt;
&lt;br /&gt;
==Fancybox gallery==&lt;br /&gt;
&amp;lt;gallery widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:df-app-fancybox-gallery.png|Page view&lt;br /&gt;
Image:df-app-fancybox-gallery1.png|Fancybox view&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With a Picture field called Image (if you prefer another name you need to change the tags in the view html accordingly) create a Grid view named Gallery (if you prefer another name etc.) with the following html in the Repeated entry template:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xdiv class=&amp;quot;entry&amp;quot;&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;xdiv style=&amp;quot;text-align: center; width: 100px; height: 100px;&amp;quot; class=&amp;quot;imageTn&amp;quot;&amp;gt;||Image||&amp;lt;/xdiv&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;xdiv class=&amp;quot;imageHref&amp;quot;&amp;gt;&amp;lt;xspan class=&amp;quot;hide&amp;quot;&amp;gt;||Image:url||&amp;lt;/xspan&amp;gt;&amp;lt;/xdiv&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/xdiv&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(remove x from html tag names)&lt;br /&gt;
&lt;br /&gt;
Now all that remains is to add the Fancybox related javascript and css in the respective tabs.&lt;br /&gt;
&lt;br /&gt;
The Fancybox is a library that you can download from http://fancybox.net/. The download zip contains a folder titled fancybox which files that you need to extract and store somewhere accessible. One approach is to create a folder recourse on your site and add the fancybox files there.&lt;br /&gt;
&lt;br /&gt;
Then you need to add the following javascript in the javascript tab. Note the reference to jquery from googleapis. You can have a local copy and reference it instead.&lt;br /&gt;
&lt;br /&gt;
Included external js:&lt;br /&gt;
&lt;br /&gt;
*http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&lt;br /&gt;
*http://path-to-fancybox-files-location/jquery.fancybox-1.3.4.pack.js&lt;br /&gt;
*http://path-to-fancybox-files-location/jquery.easing-1.3.pack.js&lt;br /&gt;
*http://path-to-fancybox-files-location/jquery.mousewheel-3.0.4.pack.js&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And js code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code javascript&amp;gt;&lt;br /&gt;
YUI().use(&amp;#039;node&amp;#039;, function (Y) {&lt;br /&gt;
&lt;br /&gt;
   if (Y.one(&amp;#039;.dataformview-Gallery&amp;#039;)) {&lt;br /&gt;
        var thisView = Y.one(&amp;#039;.dataformview-Gallery&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
        // Link the thumbnails&lt;br /&gt;
        var entries = thisView.all(&amp;#039;.entry&amp;#039;);&lt;br /&gt;
        entries.each(function(ent){&lt;br /&gt;
            var imgHolder = ent.one(&amp;#039;.imageTn&amp;#039;);&lt;br /&gt;
            var imgTn = imgHolder.one(&amp;#039;img&amp;#039;);&lt;br /&gt;
            var imgHref = ent.one(&amp;#039;.imageHref span&amp;#039;).get(&amp;#039;innerHTML&amp;#039;);&lt;br /&gt;
            var link = Y.Node.create(&amp;#039;&amp;lt;a class=&amp;quot;myGallery&amp;quot; rel=&amp;quot;gallery&amp;quot; href=&amp;quot;&amp;#039;+imgHref+&amp;#039;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;#039;);&lt;br /&gt;
            link.appendChild(imgTn);&lt;br /&gt;
            imgHolder.appendChild(link);&lt;br /&gt;
        });&lt;br /&gt;
&lt;br /&gt;
    $(document).ready(function() {&lt;br /&gt;
        $(&amp;quot;a.myGallery&amp;quot;).fancybox({&lt;br /&gt;
            &amp;#039;transitionIn&amp;#039;    :    &amp;#039;elastic&amp;#039;,&lt;br /&gt;
            &amp;#039;transitionOut&amp;#039;    :    &amp;#039;elastic&amp;#039;,&lt;br /&gt;
            &amp;#039;speedIn&amp;#039;        :    600,&lt;br /&gt;
            &amp;#039;speedOut&amp;#039;        :    200,&lt;br /&gt;
             &amp;#039;overlayShow&amp;#039;    :    true,&lt;br /&gt;
            &amp;#039;opacity&amp;#039;    :    true,&lt;br /&gt;
            &amp;#039;cyclic&amp;#039;    :    true&lt;br /&gt;
        });&lt;br /&gt;
    });&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then add reference to the fancybox css in the css tab.&lt;br /&gt;
&lt;br /&gt;
Included external css:&lt;br /&gt;
&lt;br /&gt;
*http://path-to-fancybox-files-location/jquery.fancybox-1.3.4.css&lt;br /&gt;
&lt;br /&gt;
==Cycle==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[es:Foto Galerías Dataform]]&lt;/div&gt;</summary>
		<author><name>1&gt;Germanvaleroelizondo</name></author>
	</entry>
</feed>